Multiple UIManagers for several JToggleButtons

A

AJ

I have a program that has several JToggleButtons.

I would like half of these to have one color, and the other half to
have another color.

The problem is, when I modify the UIManager with:

"UIManager.put("ToggleButton.select", Color.green)"

it molests all the buttons, even those that I had already tried to
manage with a different UIManager before.

Basically, what I am asking is if their is a way to have multiple
UIManagers for two different JToggleButtons in the same program.

Thanks!

AJ
 
A

AJ

Liz,

Sorry, I should have explained the problem more. What I am trying
to change is not only the background color of the JToggleButton, but
also the "selected" background color of the JToggleButton.

Thanks for replying though.

AJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top