• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using getImage() with using Applet

 
chetan reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I would like to know weather it is possible to
use getImage() to import a jpg image in to my
java program without importing the java.Applet.applet;
and also I don't want to use "appletviewer" to run
the program. I want to run it through "java" command.
Thanks
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u can do this but only for frame but not for applet.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chetan,
This is what Toolkit was made for... just do this:

This will load the image saved in file.gif into the Image im...
HTH,
-Nate
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic