• Post Reply Bookmark Topic Watch Topic
  • New Topic

Image as a background

 
Ola gharably
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
As I know the method setBackground(Color c) takes a color as parameter, How can I display an image ( for example "image.jpg" ) at the background???
Thanks in advance
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's an example in this post, as well as others if you search the Swing forum for "background image".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!