A .java file is a source file i.e., a text file so only the java source code will be visible.
In case you want to load an Image or some other text use Java Applet programming. You can find a good amount of examples with the JDK installed on your system. Go to <JDK_HOME>/demo and run the demo applications provided. Its the best place to get started with Java applications and learn Java Programming by looking the source code and then writing your own.