File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes how to draw graphics on jbutton? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to draw graphics on jbutton?" Watch "how to draw graphics on jbutton?" New topic

how to draw graphics on jbutton?

amit bargotra

Joined: Jan 06, 2001
Posts: 8
since i'm working on snakes n ladders with the help of 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

Joined: Dec 09, 2000
Posts: 4
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.
wood burning stoves
subject: how to draw graphics on jbutton?