How to "grey out" a JButton?

A

Anony!

Hi

I have a JButton that I would like to grey out after the user has clicked on
it once. This will prevent further clicking until a user clicks on another
JButton to restart it. I have been scrambling through the Java API and could
not find any methods that implement this.

Any help appreciated.

AAA
 

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
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top