aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to draw graphics on jbutton?" Watch "how to draw graphics on jbutton?" New topic
Author

how to draw graphics on jbutton?

amit bargotra
Greenhorn

Joined: Jan 06, 2001
Posts: 8
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

Joined: Dec 09, 2000
Posts: 4
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
 
subject: how to draw graphics on jbutton?
 
Similar Threads
A Messy Diagram
trying to understand array
browser-based game question
snakes and ladders game
Famous Java Applications