Problem with JRadio button

Hi i am designing UI using Java swings. I am populating a table with 3 columns col 1:strings col2:check box col3:radio button. The requirement(1) is whenever user clicks on the string column then only he should be able to check/uncheck the corr radio/check box on that corresponding row another requiement(2) is he can only choose 1 radiobuton for the entire table for this i implemented using button group bt its not working correctly as i am able to choose multiple radi buttons at a time. If we see on the code below i am creating the group at the time of populating the table :
for(count=0;count<vctToAdd.size();count++)
rdOutput[count]=new JRadioButton();
rdOutput[count].setText(vctToAdd.get(count).getName());
rdOutput[count].setEnabled(true);
rdOutput[count].addMouseListener(AddEntitiesDialog.getInstance().actionJtable);
group.add(rdOutput[count]);
_display[count][0]=vctToAdd.get(count).getName();
_display[count][1]=chkInput[count];
_display[count][2]=rdOutput[count];
}And in listener class i am implementing requirement 1 as follows:
if(e.getSource() instanceof JRadioButton )
     if(((JRadioButton)e.getSource()).getText().equalsIgnoreCase(obj.toString()))
        ((JRadioButton)e.getSource()).setSelected(true);
else
          ((JRadioButton)e.getSource()).setSelected(false);where obj is contains the string value of string fiels for table and o am checking it with the text of radio button which i am setting same as string value if it matches it persorms that if operation otherwise go to else.
please help
Thanks

Hi i am designing UI using Java swings. I am populating a table with 3 columns col 1:strings col2:check box col3:radio button. The requirement(1) is whenever user clicks on the string column then only he should be able to check/uncheck the corr radio/check box on that corresponding row another requiement(2) is he can only choose 1 radiobuton for the entire table for this i implemented using button group bt its not working correctly as i am able to choose multiple radi buttons at a time. If we see on the code below i am creating the group at the time of populating the table :
for(count=0;count<vctToAdd.size();count++)
rdOutput[count]=new JRadioButton();
rdOutput[count].setText(vctToAdd.get(count).getName());
rdOutput[count].setEnabled(true);
rdOutput[count].addMouseListener(AddEntitiesDialog.getInstance().actionJtable);
group.add(rdOutput[count]);
_display[count][0]=vctToAdd.get(count).getName();
_display[count][1]=chkInput[count];
_display[count][2]=rdOutput[count];
}And in listener class i am implementing requirement 1 as follows:
if(e.getSource() instanceof JRadioButton )
     if(((JRadioButton)e.getSource()).getText().equalsIgnoreCase(obj.toString()))
        ((JRadioButton)e.getSource()).setSelected(true);
else
          ((JRadioButton)e.getSource()).setSelected(false);where obj is contains the string value of string fiels for table and o am checking it with the text of radio button which i am setting same as string value if it matches it persorms that if operation otherwise go to else.
please help
Thanks

Similar Messages

  • Problems with home button on iPhone 4

    problems with home button on iphone 4

    If its due to sensitivity issues, these self help guides might help.
    http://www.youtube.com/watch?v=zNwr_mxgs9Q
    http://www.youtube.com/watch?v=lSqPC1V0PPg&feature=related
    By the way, alcohol based hand sanitisers work too.
    Don't overapply it in one go though. You'll have to allow the alcohol to evaporate.
    One final tip, after its dried, I'd recommend you to leave your iPhone's home button facing a laptop's vent just to bake it a little drier.

  • Problems with parameter button in Crystal Report Server  2008

    Dear all,
    I have problems with parameter button in Crystal Report Server 2008.
    when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button'  on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter'  First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
    Could any one help me with this?
    I appreciate looking forward to your reply
    Ketya

    Try posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server

  • Problem with Information button in WAD

    Dear Mates,
    I have a problem with Information button in WAD template.
    I have two queries in web template. those two queries are in two tabs( i used Tabstrip ) respectively.
    if i press first tab it shows query1 and if i press second tab it shows query2 absolutely.
    problem
    when i am in first tab, if i click information it will show information about query1, but when i am in second tab,
    if i click information it will show information about query1 only..
    i need it to show information about second tab.
    Please help. Its urgent. Full Reward points will be given.
    Thanks in advance.
    Regards,
    Ranganath

    check out this link
    http://www.mhprofessional.com/downloads/products/0071640266/0071640266_chap01.pdf

  • A really annoying problem with a button/movie clip

    I am having a problem with a button! its driving me insane
    because i managed to do it last week, but that was by chance and
    now i can't remember how i did it!
    I can get the button (i'm using gelright from the common
    libraries panel) and convert it to a movie clip(by pressing F8) and
    even attach a behaviour but when i play the movie it doen't work!
    when i move the curser over the button it changes into a hand, but
    will not act like a button, even though i have set the behaviour to
    'on release, go to and play keyframe 2'.
    Please help me, for the sake of my laptop goin through the
    wall!

    virgosam20 wrote:
    > first, i found the button i wanted in the common
    libraries (gelright) and
    > added it to the stage. I resized it and converted it
    into a symbol as a movie
    > clip. Then it got added to my library.
    > Then i deleted it from the stage and replaced it with
    the movie cip version i
    > had just converted it to. so now i have the same object
    on the stage, but now
    > its a movie clip and not a button.
    ok - you are running yourself around in circles - why did you
    delete it to the stage only to add it
    again? once you converted it to a movie clip, you had what
    you wanted on the stage - but then you
    deleted it and dragged another instance of the same symbol
    back onto the stage - there's no reason
    to do that.
    > Then i double clicked on it to bring up the movie clip
    timeline, but instead
    > of saying 'top, down, over, hit' (or whatever it says),
    it jsut said 'layer 1'
    > (but this was not my original stage as i have a number
    of layers on that one).
    Right - this is expected because yoyu are now inside the
    movie clip timeline - not the button timeline.
    > When i double clicked on it again, it brought up the
    right headings (top, down,
    > over, etc),
    Right - because by double clicking the button symbol you were
    then brought to "edit mode" for the
    button symbol.
    but there were about 5 layers that showed the different
    layers for
    > the original button.
    Huh? What "5 layers"? What do you mean "original" button -
    per your description there has only ever
    been 1 button you have been working with.
    > I think i have to add the button to each of the
    headings, bt there is no room,
    Lost you completely now - what do you mean add the button to
    each heading? I have no clue what you mean.
    > as when i did it before, there was only one layer for it
    and i had to insert
    > the key frames myself.
    Still losing you here.
    > I then added a behaviour to it using the Behaviours
    pannel, (selected
    > movieclip, then 'go to and play....') and it appears in
    the behaviours pannel.
    > But when i got to Play Movie, although the curser
    changes into a hand, the
    > button does not work.
    That's because you are applying a behavior for a button to a
    movie clip instead.
    I think you went wrong when you converted the button to a
    movie clip - i have no idea why you did
    that or why to think your button needs to be in a movie clip.
    >
    > Hope that can help you with what i've done and you can
    tell me where i've gone
    > wrong.
    >
    I just think you don't understand how timelines, symbols or
    buttons work yet in flash.
    1. drag a button to the stage.
    2. select it and open the Behaviors panel (dont double click
    it to edit it).
    3. add your actions.
    4. test movie.
    (no need for a movie clip here.
    -chris

  • Problem with the button

    Hi my name is Lior Sassi from Israel. I bought an iPhone 5 in Amsterdam. Now I have a problem with the button on the iPhone and I still have a guarantee. Where can I fix the problem?

    The Warranty is only valid in the Original Country of Purchase.
    For Troubleshooting your button issue... See Buttons and Switches here...
    http://support.apple.com/kb/TS2802

  • Problem with sleep button

    I have problem with sleep button on my hp pavilion dv6-1354us When i press FN + F5 nothing happend. I reinstalled drivers for hp quick lunch buttons but the same problem.. Any solutions ? Thanks.

    The operations of FN functions mainly based on the intrinsic working between the drivers and System BIOS.
    If you already upgraded the Quick Lanuch Driver, then you may want to upgrade your System BIOS to the latest one in HP website to see if it can resolve the problem for you.
    However, you need to be careful while upgrading your System BIOS.

  • Hey everyone I am haveing problems with Flash Button

    Hello everyone I am new here so I am haveing problems with
    Flash Button because of the html address it wont go to the address
    that i put into it it keep going to
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesigner.net
    why does it do that? this is a link problem issue with flash
    button in macromedia dreamweaver 8?
    someone please help me?
    Jeremy

    >
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesig
    > ne
    > r.net
    In the dialog box for the Flash Button, in the link box, put
    the full
    absolute path if an external page. Including the
    http:// part.
    http://www.example.com/page.html
    for pages inside your site- use the browse to file icon, and
    use a relative
    path.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Problem with Masked Buttons

    As it stands i have a button called Start, when this button is hovered over, three more buttons appear at its side (all masked)
    I'm having trouble actionscripting the buttons, ive tried putting the AS on the button
    on(release){
    gotoAndStop(2);
    seen as everything so far is done on the first frame on various layers i just need it to go to frame 2. but this doesn't work.
    the code that's on the start button is
    on(rollOver){
    Startmenu.play();
    Start menu is the invisible movieclip which has the masks and rollout buttons in.
    anyone got any ideas?

    start button does overlay the other buttons and it is on the main timeline. as is the movieclip which activated the 3 buttons when the start button is rolled over with the mouse.
    Date: Fri, 26 Mar 2010 08:39:42 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problem with Masked Buttons
    does your start button overlay the other buttons?
    is your start button on the main timeline?
    is the movieclip with the 3 buttons on your main timeline?
    does that movieclip respond to the mouse (and thereby intercept mouse events intended for the buttons it contains)?
    >

  • Problem with the buttons

    Recently I have problems with some buttons on my 8800.
    When I hit the trackball the BB writes "Uo". When I hit the 'back' button it writes "Hl". Also the menu button does not what he has to do. Anyone the same problem or even better a solutions for this problem?
    Bye, Ben

    You are not alone.  the same thing happened to me today with my 8820. 
    it worked fine for one call then i hung up and tried looking up a number.  Track ball dosn't work at all, their isnt even a backlight on the trackball.  the back button types in hl.  i also think my e button is enter but i dunno.  that one seems on and off.
    Edit.  I found this:
    http://www.blackberryforums.com/general-8800-series-discussion/114752-blackberry-button-problem.html
    Message Edited by jasgud on 07-27-2008 08:25 PM

  • Problem with option buttons

    Hi!
    We have a problem with Option buttons.
    Example: We create a new document , then we add a group of Option buttons, so far no problem,  but we can't have different description on each button. Say we create four option buttons, option 1, option 2, option 3 and option 4. They are now grouped together so that we can only choose one option, but we also want to have different descriptions on the tooltip when the user hovers over. But when we set for example "Option 1" as a description on the first button, all buttons get the same description, what is wrong!
    Dan

    A field's Tooltip entry is a "child" of the field's Name (in the General tab of the field's Properties dialog).
    So, all fields of the same Name will have the same Tooltip.
    Perhaps this is the problem?
    Be well...

  • A problem with the buttons

    We are making a video game at school. and we are having
    problems with the buttons. We are having problems with the action
    codes. like gotoandstop. and things like that. it comes up that we
    have errors do you have any possible solutions.
    Thank you,
    Blevins EAST

    trx 450 wrote:
    > We are making a video game at school. and we are having
    problems with the
    > buttons. We are having problems with the action codes.
    like gotoandstop. and
    > things like that. it comes up that we have errors do you
    have any possible
    > solutions.
    > Thank you,
    > Blevins EAST
    Need more info or file source for us to check.
    "My car does not work, what's up with that" is way too
    general to even try to
    suggest something.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • A problem with rollover button

    i have a problem with rollover button in the menus when i upload my site to the hosting server. When i preview in browser with Dreamweaver before upload , there are no problems.
    Thank you!

    You have not uploaded the images on the server which is why rollover is not working. When we put the url - http://modano.1gb.bg/button4a.gif in browser it takes the user to the home page of the hosting company. I think you need to check to make sure that the images are uploaded properly.
    Regards.
    Barbara Long

  • Problems with custom buttons

    I have problems with custom buttons in Captivate 5. The button is not switching from the _up stage to _over stage, but when I click on it the _down stage works fine. It is not a problem with the naming of the buttons. They are all with the same name and in lower case. I have tried with various custom buttons and the problem is the same. There is no problems with the standard buttons from the Adobe Gallery, so it is a bit strange, also strange that it is only the _over stage that causes problems.
    The buttons I have made in Adobe Illustrator. Have tried both exporting in png and bmp format. It is the same problem.
    Hope someone has some idea as to what can be wrong.

    Hi Manish,
    I have uploaded the zip file with the button files to Acrobat and mailed you the link.
    Look forward to hear if you find a reason or more importantly a solution :-)
    Kind regards
    Rene

  • Problem with home button and "messages" app after upgrade to iOS 4.1

    Hello,
    I have noticed two interesting problems with my iPhone 4. I am not sure if it is in conjunction with the upgrade to the iOS 4.1 software, but I did not notice the problem prior to this. Both of these problems are very odd and are hit or miss. I have tried restoring and the problem is still present. Also, since both problems have presented at the same time, that is why I am starting to believe it is not hardware...
    Problem 1: The home button has become considerably unresponsive. This is not all the time, but it does happen a lot. Sometimes it won't work for about 5-8 clicks and I have to use the power button to access the phone.
    Problem 2: When composing a new text message the cursor would always default into the "To:" section of the app which allows you to easily type what contact you are trying to message. However, I am having the issue now occasionally when I am in the messages app and select to compose a new text message that the cursor now defaults into the chat box (where you type your actual message). This is very annoying and I know that this is not the intended behavior of this.
    Please let me know if anyone has experienced similar issues and can provide me with some feedback.

    I have not experienced the same.
    I have tried restoring and the problem is still present.
    You restored from your iPhone's backup, or as a new iPhone or not from your iPhone's backup?
    If whatever software problem is causing this is included with your iPhone's backup, restoring from the backup will also restore the problem.
    Try restoring as a new iPhone or not from your iPhone's backup to see if this makes any difference. If not, more than likely your iPhone has a hardware problem.

Maybe you are looking for

  • LinkedButton de Sistema

    Bom dia a todos, estou com a seguinte duvida, criei um choosefromlist em uma matrix de sistema e ele está funcionando corretamente, porém, não consigo colocar a seta laranja nesse campo da matrix pelo fato de ser uma matrix de sistema, alguem já prec

  • Programmatically Turn Off Printing (Acrobat 6.0)

    Hello. I'm searching (fruitlessly so far) for an option to turn off printing on a PDF. I've gone down multiple avenues and have come up empty to date. My company is using Documentum SCS and Content Transformation Services (Documentum) to export/conve

  • WM Staging Raw Materials for CS Service Order

    Dear WM Experts, I seek your help in solution for a particular scenario. My client accepts the customer-returns of faulty devices, repairs them and delivers back functioning device to customer. Faulty devices are received through a special returns sa

  • Problem With Show Items In Subfolders, Windows 7 64

    Is there a way to make "Show Items From Subfolders" persistent in Bridge CS5. I'm on a Windows 7 64 bit machine. If I click on this under View, if I go to another folder and come back, it will not show the flattened view. Another problem, it seems no

  • My touchpad stopped working on my laptop

    I don't know why. Usually it will turn on and off if I hit it in the corner a certain number of times (like 3-4 I think) but all I did was try wake my computer up and the touchpad wasn't doing anything. I hit a few random keys and got the password sc