| Author |
Accessing JRadioButton from another class
|
Lyn Arce
Greenhorn
Joined: Nov 02, 2010
Posts: 5
|
|
Hi all,
I´m doing an applet with a clock and two radio buttons to select the background color.
I´m not sure how to access the radio buttons in the applet class, I´m trying it with an ActionListener, and setActionCommand,
but I can´t make it work...
Thanks in advance,
Lyn
\\Here is the (problematic) Coloring class
|
 |
Mohamed Sanaulla
Bartender
Joined: Sep 08, 2007
Posts: 2927
|
|
You can use-
and then in the actionPerformed-
|
Mohamed Sanaulla | My Blog
|
 |
Lyn Arce
Greenhorn
Joined: Nov 02, 2010
Posts: 5
|
|
|
Thanks, I got it.
|
 |
 |
|
|
subject: Accessing JRadioButton from another class
|
|
|