File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes using getImage() with using Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "using getImage() with using Applet" Watch "using getImage() with using Applet" New topic
Author

using getImage() with using Applet

chetan reddy
Greenhorn

Joined: Mar 07, 2001
Posts: 4

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

Joined: Jan 08, 2001
Posts: 122
u can do this but only for frame but not for applet.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4120

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


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
IntelliJ Java IDE
 
subject: using getImage() with using Applet
 
Threads others viewed
classpath in java
Applet, How to get the image displayed PLEASE HELP
run java code through bat file
Applet, How to get the image displayed PLEASE HELP
Question Using getClassLoader().getResource() With an Executable Jar
MyEclipse, The Clear Choice