Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ImagePanel with components

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a panel that displays a background image as below:-



But I need to add components to it. I'm doing this:-



Problem is, whilst I see the background image and don't see the buttons.

Do I need to change the ImagePanel class or something?

Cheers in advance!
 
Rob Camick
Ranch Hand
Posts: 2534
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use a "null layout". Why did you include that line if you don't know what it does?

Also, there is no need to create a custom component for this, you can just use a JLabel and then set the desired layout manager.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic