Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how to display Image to frame from URL using AWT

  Asked By: Lorraine    Date: Oct 20    Category: Java    Views: 1758
  

I have problem when want to display image (from url) to myframe calling from
applet..

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Devlan Jones     Answered On: Oct 20

Toolkit myToolkit = Toolkit.getDefaultToolkit();
Image img = myToolkit.getImage("img.jpg");

maybe i have spelling mistakes, but u should have the Java Docs for
java.awt package, in it you'll find the correct spelling of
Toolkit,Image , and function names in the classes.

I hope this is useful?

 
Didn't find what you were looking for? Find more on how to display Image to frame from URL using AWT Or get search suggestion and latest updates.




Tagged: