• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing JRadioButton from another class

 
Lyn Arce
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3166
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use-


and then in the actionPerformed-
 
Lyn Arce
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I got it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!