The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Perhaps you could use the setSelected method

Posted by Hiran on January 17, 2002 at 2:04 PM

JButton inherits the setSelected method from javax.swing.AbstractButton. When you want all the buttons to appear not selected, you could go through and call the setSelected method for each button, setting it to false. Is this what you were looking for?
Hiran

> The problem is that when i press one of those buttons the state of this turns true (you see the button selected), the program make his work but when it's finished the state of the buttons continue true and i want that the state pass to be false (see the button not selected).





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us