Re: Radial buttons and IFs
I hate sounding like an idiot, but what is a radial button?
Re: Radial buttons and IFs
What class are your buttons? Does that class have any methods you could use for testing the state of the buttons?
Re: Radial buttons and IFs
Since you're completely new, read the API for any of the button classes and follow the link to the Swing tutorial from there.
db
Re: Radial buttons and IFs
Quote:
Originally Posted by
Norm
What class are your buttons? Does that class have any methods you could use for testing the state of the buttons?
It's JButton. I need a method which will determine whether button is checked or not.
Re: Radial buttons and IFs
Quote:
JButton. I need a method
Look in the API doc for all the methods in the class and the inherited methods also.
Java Platform SE 6
Re: Radial buttons and IFs
Quote:
Originally Posted by
vramba
It's JButton. I need a method which will determine whether button is checked or not.
Are you sure about this? JButtons don't get "checked" while JCheckBox and JRadioButton (which is what I *think* you mean) do, as does a JToggleButton in a matter of speaking. Not to sound harpy, but please be as precise as possible when describing your problem. Learning to program is difficult, and helping others do this is even harder, hard enough that if you're asking questions you should strive to make it as easy as possible for us to help you and to avoid this type of confusion.