This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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.
Have you checked out Aspose?
subject: how to draw graphics on jbutton?
It's not a secret anymore!