• Post Reply Bookmark Topic Watch Topic
  • New Topic

Image as a background  RSS feed

 
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".
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!