This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes JToggleButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JToggleButton" Watch "JToggleButton" New topic
Author

JToggleButton

Coq Rouge
Greenhorn

Joined: Nov 17, 2001
Posts: 5
Can you make the color on the button background and text change when you press the button??

[This message has been edited by Coq Rouge (edited November 17, 2001).]


[img]<http://home.no.net/warezcoq/spider.gif>[/img]<BR>
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi,
Sure! Check out the code below.

Regards,
Manfred
 
 
subject: JToggleButton