Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JToggleButton" Watch "JToggleButton" New topic


Coq Rouge

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).]

Manfred Leonhardt
Ranch Hand

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

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JToggleButton
It's not a secret anymore!