Current location: Hot Scripts Forums » General Web Coding » JavaScript » trouble in the simple town


trouble in the simple town

Reply
  #1 (permalink)  
Old 09-09-10, 05:45 AM
Honjura Honjura is offline
New Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy trouble in the simple town

Hi, thanks for reading.

I am writing code for a specific type Calculator and can not figure out how to make radio buttons only be selected one at a time, (shocking i know) and to run some code to check and see which one is selected so that i can run a different part of the program based on the selection.

And yes i have tried Googling it but everything seems to end up as an error and Ask if i would like to create a new Package or package with constructor or rename the field or something that just doesn't work...

Code:
//Group the radio buttons
ButtonGroup bg = new ButtonGroup();
bg.add (jRadioButton1)
bg.add (jRadioButton2)
this is all i have thus far in relation to it.

Thank you for reply's in advance
Reply With Quote
Reply

Bookmarks

Tags
calculator, check, help me, radio


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A few simple scripts aaroninwv Script Requests 6 03-20-08 11:01 AM
Simple Script Required For Simple Man thebigman PHP 6 01-06-07 12:04 AM
Need Extremely Simple Script Mephistopheles Script Requests 3 11-13-06 03:09 PM
Need Simple Forum & Knowledgebase Norm1 Script Requests 1 01-31-06 01:08 AM


All times are GMT -5. The time now is 02:03 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.