Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

images in labels?  RSS feed

 
daman sidhu
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!