This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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.
rocket mass heater kickstarter
subject: how to draw graphics on jbutton?