This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JButtons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JButtons" Watch "JButtons" New topic
Author

JButtons

Rob Hailday
Greenhorn

Joined: Jan 09, 2004
Posts: 3
Hi i've just started to use java and i can't figure out how to make my button chage the image that i'm displaying. It won't even show a button in my applet just the image. Any help would be much appreciated!
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
Could you post some code?
Rob Hailday
Greenhorn

Joined: Jan 09, 2004
Posts: 3

This is all i've done so far but it doesn't work!
Ken Krebs
Ranch Hand

Joined: Nov 27, 2002
Posts: 451
Rob,
Try this:


kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
Rob Hailday
Greenhorn

Joined: Jan 09, 2004
Posts: 3
Thanks very much I'll give it a try. Cheers!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JButtons
 
Similar Threads
Resize ImageIcon
Missing post IMAGE button
Disable an image
JavaFX Button: You'd think this would be simple....
reduce gap between image and button