File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to draw graphics on jbutton?

 
amit bargotra
Greenhorn
Posts: 8
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic