Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Placing an image on a JPanel

 
Shane Lilly
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I were to draw an image on something like photoshop, just a menu of sort that shows which key provide which events...
Could I then place this image onto a JPanel and show it in a JFrame??
Could anyone post a code fragment of how to do this...
Thanks.
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a couple of ways to display an image. Icon is probably the easiest.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!