Results 1 to 4 of 4
Thread: Help with Radio Buttons
- 06-28-2010, 11:54 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 1
- Rep Power
- 0
Help with Radio Buttons
Hi Guys
Wondering if any of you would be able to help me.
I have a ButtonGroup with five radio buttons.
button1
button2
button3
button4
button5
At the bottom I need to include two JButtons with up and down.
The idea is to move the selected radio buttom up and down using the JButtons at the bottom.
Any help would be really appreciated.
Thanks
miguelms19
- 06-29-2010, 09:38 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
-
There are many ways to acheive this functionality; for instance, why not create an ArrayList of JRadioButtons? If the up arrow has been pushed, iterate through the list finding the selected button and then selecting the previous JRadioButton in the list?
Have fun.
- 06-29-2010, 07:49 PM #4
Doesn't sound like a very good design decision, but if you really need this functionality my Select Button Group class with its setSelectedIndex(int index) method might be useful to you.
Select Button Group « Java Tips Weblog
db
Similar Threads
-
Select one of X radio buttons
By Adrien in forum AWT / SwingReplies: 1Last Post: 02-25-2010, 06:30 PM -
How can i setString when i use radio buttons?
By Tahorn in forum AWT / SwingReplies: 4Last Post: 02-16-2010, 02:03 PM -
Displaying Radio Buttons in JSP
By kishan in forum Advanced JavaReplies: 4Last Post: 10-23-2009, 03:44 PM -
How to use Radio Buttons
By Java Tip in forum SWTReplies: 0Last Post: 07-25-2008, 02:26 PM -
radio buttons and paint
By gtraylo in forum Java AppletsReplies: 1Last Post: 04-19-2008, 12:43 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks