my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Image in JFrame ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Image in JFrame ???" Watch "Image in JFrame ???" New topic
Author

Image in JFrame ???

sachin sharma
Greenhorn

Joined: Sep 27, 2001
Posts: 7
how can i call the image into my frame.
Matt Hansen
Ranch Hand

Joined: Jul 31, 2001
Posts: 34
You can try this:
sachin sharma
Greenhorn

Joined: Sep 27, 2001
Posts: 7
dear matt,
thanks for your reply.
i try this. but it can't work
would please give me detailed coading.
with thanks
sachin
Shay Gaghe
Ranch Hand

Joined: Sep 03, 2001
Posts: 102
Hi
have you put the image.gif in the same directory where your project placed? if no you should.
try:
jframe.getContentPane().add(label)
instead of:
jframe.add(label);
Shay Gage: gagis@internet-zahav.net

[This message has been edited by Shay Gaghe (edited October 08, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image in JFrame ???
 
Similar Threads
Loading image file
Getting rid of Java Icon on the upper left hand corner
Easy one
Unsupported Color Conversion Request
converting png to tiff and character recognition with tesseract