File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Image instead of a button Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Image instead of a button" Watch "Image instead of a button" New topic
Author

Image instead of a button

kimi lynn
Greenhorn

Joined: Jun 02, 2003
Posts: 27
Hello everybody,
I've a simple GUI and instead of the standard text appearing on the buttons, I would like to put an image.Could somebody please tell me how can i do that in the follwing piece of code.
Many many thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8264

The Swing Tutorial details how to make a JButton display an image.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image instead of a button
 
Similar Threads
Some help.
ActonListener
passing text from JDialog to JFrame
JBUtton errors(Cant resolve symbol)
How can I diplay and Applet on a swing application?