Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to select the next JRadioButton programmatically.

oaisFeb 16 2012 — edited Feb 16 2012
Hello,

I need code to place in the action of a timer to switch selection among JRadioButtons.

Something that goes like this:

When the timer expires:
 if JRadioButton1 is selected , deselect it, and select the next one.
   if the last one is selected , select the first and so on....
Please note: The number of JRadioButtons is unknown and therefore will be only known after querying the database.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2012
Added on Feb 16 2012
3 comments
299 views