aspose file tools
The moose likes Swing / AWT / SWT and the fly likes loading an image into a frame Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "loading an image into a frame" Watch "loading an image into a frame" New topic
Author

loading an image into a frame

Paul Bailey
Ranch Hand

Joined: Oct 20, 2000
Posts: 91
How can I get an image into my Frame? I want it to be the icon image.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
SetIconImage(Toolkit.getDefaultToolkit().getImage("somepath/someimage.gif"));
[This message has been edited by Bodie Minster (edited December 01, 2000).]
Paul Bailey
Ranch Hand

Joined: Oct 20, 2000
Posts: 91
Thanks a lot, that worked.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Always happy to help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loading an image into a frame
 
Similar Threads
Image is always behind the menu (swing)
Image in JFrame ???
Adding an image to a frame
awt
add Image to Frame