• Post Reply Bookmark Topic Watch Topic
  • New Topic

adding image in jframe

 
psantosh spandey
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends ,

i am struggling a lot to add a pic in jframe . Any body can help me outin this matter.

thaks in advance
 
Greg Brouelette
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the source code for the Swing Set image demo. But essentially, the easiest way to do it is to put an image into a JLabel and place the JLabel into a JPanel.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!