This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: images in labels?
 
Similar Threads
store image using sql server
How to make jar in eclipse
image uploading and selection an image from many images?
How to select an image from many images in a JSP page?
how to use image ?