File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes images in labels? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "images in labels?" Watch "images in labels?" New topic
Author

images in labels?

daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
Hi,
I would like some help here, i am making a chat applicaiton in the top of which i want a banner to be displayed(advertisement) , how can i do that, i tried adding image in a label but then for the image to draw i have to use paint , which messes up the whole screen and the other things are not visible then like the textpane below it.Can anyone help.Ill be thankful.
Regards,
Daman
daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
Hi,
I have worked out how to do that, instead of painting the images now i am using Image and ImageIcon class alongwith JLabel in which i am passing the imageicon , as a result it is now working properly.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: images in labels?
 
Similar Threads
store image using sql server
how to use image ?
How to select an image from many images in a JSP page?
image uploading and selection an image from many images?
How to make jar in eclipse