• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying background image in JDialog and Also components

 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JDialog where i have to show an image in the background like watermark and also i have few components(JLabel, JComboBox, JTextfields, JButtons....) to be displayed in the dialog. Can i have some idea/sample code to do this.

Thanks in advance
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
return to the swing forum's main page for the faq link which has an example
of a background image on a JPanel.

add the panel to the dialog, then add components to the panel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!