• Post Reply Bookmark Topic Watch Topic
  • New Topic

Add image as background  RSS feed

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
Is there any way to add image as background just as how we add the color as background(i.e panel.setBackground(Color.black)) in the same way i tried to set the background but i got error.I think there is some other way to do that thanks and regards.


Thanks and Regards
alexander
 
Rob Spoor
Sheriff
Posts: 21050
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/BackgroundImageOnJPanel
 
Rob Camick
Ranch Hand
Posts: 2787
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on your exact requirement. The Background Panel gives a couple of different ideas.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!