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

how to draw graphics on jbutton?

 
amit bargotra
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
since i'm working on snakes n ladders with the help of swings.so i want to know how to draw snakes & ladders over the jbuttons.
i think that glass pane can do,if so tell me how?
 
Preethi Mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Why don't you try putting icons on these buttons. That ought to work.Use ImageIcons which takes in filenames(jpeg/gif). Set the border to empty for the JButton.
Hope that helps.
Cheers,
Preethi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic