• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image instead of a button

 
kimi lynn
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I've a simple GUI and instead of the standard text appearing on the buttons, I would like to put an image.Could somebody please tell me how can i do that in the follwing piece of code.
Many many thanks
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Swing Tutorial details how to make a JButton display an image.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic