• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridBagLayout background image

 
SteveThompson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a java application, where I am using GridBagLayout, utilising North, South, East, West and Center.
I would like to insert a background image which will form the backdrop of the whole window, leaving my existing icons, buttons, text boxes
intact in the foreground.
Any ideas, on the best/easiest way?
Thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The layout doesn't matter... you'll just need to use a subclass of JPanel like the one below...

 
Younes Essouabni
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
that's great, I was wondering also how to achieve it. Thx a lot
Another question. With some applications, like winamp3, when you start the application, a picture appears with no frame and disapear once the application has fully started. Do you have an idea on how to achieve it?
Thx in advance
[ April 02, 2003: Message edited by: Younes Essouabni ]
 
padma Doddapaneni
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using java window class you can acheive this.
 
SteveThompson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much.
I'll give it a try at the weekend
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic