aspose file tools*
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
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!
 
jQuery in Action, 2nd edition
 
subject: JButtons