Button Group

Hello, I'm gettin' mad... perhaps you can help me with a Swing problem
I have a JScrollPane and on that JScrollPane (grid layout 1 column xxx rows) are several panels.
Each of that Panels has the same build up.
At first I have a JRadioButton... second I have the Name, third I have a Street and so on (I can't solve it by a JTable because each of that Panels extends to more than one Row)
Until that point it works fine. I have all these Panels on my ScrollPane but the Problem ist I can select more than one JRadioButton
What do I have to do to be able to select only one of these Buttons??
Perhaps you can give me a small hint
Thanks

Sorry, but I don't really know what you mean.
Let me show my problem a little bit more in detail:
From a database i got a result set. Out of the ResultSet i form a Vectors of Data and out of that Vectors I create a Vector of "SelectDialogRowObjects". My class "SelectDialogRowObject" provides a Method "getView" which returns a JPanel
These JPanels are all the Same. And they all have a JRadioButton at first
So on my GUI I have a ScrollPane and I make an Enumeration onto that "SelectDialogRowObject"-Vector to put all the JPanels from currentObject.getView() onto the ScrollPane
So far so good.
How can I avoid that multiple RadioButtons are selected???????
Do you understand my Problem?
Would be very very nice if you could help me

Similar Messages

  • Creating a radio button group in a column of a table in Web Dynpro

    Hi,
    I want to put a radio button group in a column of a table in Webdynpro. I added a column to a web dynpro view and then inserted a tableCellEditor for that column.. But I cannot define it as Radio Button group. I want the user to be able to select 3 statuses using this group.
    Does anyone have a solution for this??
    Thanks in advance...
    Nakul

    Hi,
    You wont be able create three RB in one cell.
    Create as many column as the no of options is.Here it is 3.
    Create 4 attributes inside the node , option 1,option 2,option 3 and selectedoption.
    Map each RB s keytoSelect to option 1,2,3. Map all the RBs selectedKey atribute to selectedoption.
    Now selection for each row will be stored in the selected option.
    Regards
    Bharathwaj

  • One tray for multiple button group items

    Hi,
    I have 3 button group items in my templaate ,in the propoerties of these button grps the tray is on .NOw I can see 3 trays when I execute my template instead I want to have one tray for these 3 button group items . How is this possible?
    THanks
    Sany

    OK, I'm having trouble again. I need multiple items to drag
    to one target. I'm putting all my actionscript in the same frame,
    and here's how it looks:
    stop();
    name_mc.onPress = function():Void {
    this.startDrag(true);
    name_mc.onRelease = function():Void {
    this.stopDrag();
    if (eval(this._droptarget) == safe_mc) {
    this.swapDepths(this._parent.getNextHighestDepth());
    this.removeMovieClip();
    address_mc.onPress = function():Void {
    this.startDrag(true);
    address_mc.onRelease = function():Void {
    this.stopDrag();
    if (eval(this._droptarget) == safe_mc) {
    this.swapDepths(this._parent.getNextHighestDepth());
    this.removeMovieClip();
    And I'm getting the following error message:
    **Error** Scene=Recap, layer=actions, frame=1:Line 21:
    Statement block must be terminated by '}'
    address_mc.onRelease = function():Void {
    **Error** Scene=Recap, layer=actions, frame=1:Line 27: Syntax
    error.
    Total ActionScript Errors: 2 Reported Errors: 2
    Do you know what I'm doing wrong?

  • How to disable a lead selected item in a radio button group ?

    Hi,
    I have a radio button group and there are entries to create radio buttons dynamically. means there is only one radio button group in the UI design and in runtime I will be having two radio buttons (For ex: Yes and No ) . Now If I want to disable either Yes or No radio button, I am unable to do so. because If I disable the radio button group it disables both.  So, I can have lead selected item for ex: Yes which I want to disable. I want to know specifically how this Yes button to be disabled by taking lead selected index item.
    Please help.
    Thanks
    Praveen

    Try setting the radio button value of the lead selected button to abap_false/space.

  • Radio Button Groups

    Hi I am trying to create two radio button groups, one which contains other text buttons and names buttons, in this group only other text button or names can be chosen. But then within the other group I have all the names buttons, but i only want one of these to be chosen at a time. Heres my code
    [AS]
    import fl.controls.RadioButtonGroup;
    //===========================All Name Buttons============================
    var NameTxtRadio:RadioButtonGroup=new RadioButtonGroup("NameTxtRadio");
    LBtextMenu.LBnames.group=NameTxtRadio;
    RBtextMenu.RBnames.group=NameTxtRadio;
    LStextMenu.LSnames.group=NameTxtRadio;
    RStextMenu.RSnames.group=NameTxtRadio;
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
    function NamesshowResult(event:MouseEvent):void {
       switch (NameTxtRadio.selection) {
              case RBtextMenu.RBnames :
               trace ("RB names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = true;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = true;
                           LStextMenu.LSnames.selected = false;
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                             RStextMenu.RSnames.selected = false;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = true;
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                           RStextMenu.RSnames.selected = true;
                           RBtextMenu.RBnames.selected = false;
                           LBtextMenu.LBnames.selected = false;
                           LStextMenu.LSnames.selected = false;
                            break;
    //==========================Right Breast text menu==========================
    var RBTxtRadio:RadioButtonGroup=new RadioButtonGroup("RBTxtRadio");
    RBtextMenu.RBotherTxt.group=RBTxtRadio;
    RBtextMenu.RBnames.group=RBTxtRadio;
    RBtextMenu.RBotherTxt.addEventListener(MouseEvent.CLICK, RBshowResult);
    RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, RBshowResult);
    function RBshowResult(event:MouseEvent):void {
       switch (RBTxtRadio.selection) {
              case RBtextMenu.RBotherTxt :
               trace ("RB other chosen");
                            break;
                           case RBtextMenu.RBnames :
               trace ("RB names chosen");
                            break;
    //==============================================================================
    //==========================Left Breast text menu==========================
    var LBTxtRadio:RadioButtonGroup=new RadioButtonGroup("LBTxtRadio");
    LBtextMenu.LBotherTxt.group=LBTxtRadio;
    LBtextMenu.LBnames.group=LBTxtRadio;
    LBtextMenu.LBotherTxt.addEventListener(MouseEvent.CLICK, LBshowResult);
    LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK,LBshowResult);
    function LBshowResult(event:MouseEvent):void {
       switch (LBTxtRadio.selection) {
              case LBtextMenu.LBotherTxt :
               trace ("LB other chosen");
                            break;
                           case LBtextMenu.LBnames :
               trace ("LB names chosen");
                            break;
    //==============================================================================
    //==========================Left Shoulder text menu==========================
    var LSTxtRadio:RadioButtonGroup=new RadioButtonGroup("LSTxtRadio");
    LStextMenu.LSotherTxt.group=LSTxtRadio;
    LStextMenu.LSnames.group=LSTxtRadio;
    LStextMenu.LSotherTxt.addEventListener(MouseEvent.CLICK, LSshowResult);
    LStextMenu.LSnames.addEventListener(MouseEvent.CLICK,LSshowResult);
    function LSshowResult(event:MouseEvent):void {
       switch (LSTxtRadio.selection) {
              case LStextMenu.LSotherTxt :
               trace ("LS other chosen");
                            break;
                           case LStextMenu.LSnames :
               trace ("LS names chosen");
                            break;
    //==============================================================================
    //==========================Right Shoulder text menu==========================
    var RSTxtRadio:RadioButtonGroup=new RadioButtonGroup("RSTxtRadio");
    RStextMenu.RSotherTxt.group=RSTxtRadio;
    RStextMenu.RSnames.group=RSTxtRadio;
    RStextMenu.RSotherTxt.addEventListener(MouseEvent.CLICK, RSshowResult);
    RStextMenu.RSnames.addEventListener(MouseEvent.CLICK,RSshowResult);
    function RSshowResult(event:MouseEvent):void {
       switch (RSTxtRadio.selection) {
              case RStextMenu.RSotherTxt :
               trace ("RS other chosen");
                            break;
                           case RStextMenu.RSnames :
               trace ("RS names chosen");
                            break;
    //==============================================================================
    [/AS]
    I have no problem choosing between either, other text button or names, only one is selected at a time, but this isnt the case for the other group im able to select multiple name buttons without the other one becoming deselected.
    Thanks in advance for any help.

    Hi just if anyone else wants to do something like i have, I had to ditch the radio button component and make my own.
    Heres the code.
    [AS]
    RBnamesTextButton.CustomRadioButton.stop();
    LBnamesTextButton.CustomRadioButton.stop();
    RSnamesTextButton.CustomRadioButton.stop();
    LSnamesTextButton.CustomRadioButton.stop();
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
    function rollOverState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
    function rollOffState01(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
    function rollupState01(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              event.target.gotoAndStop(3);
    //======================================OTHER TEXT========================================================
    RBotherTextButton.CustomRadioButton.stop();
    LBotherTextButton.CustomRadioButton.stop();
    LSotherTextButton.CustomRadioButton.stop();
    RSotherTextButton.CustomRadioButton.stop();
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
    function rollOverState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("over");
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
    function rollOffState02(event:MouseEvent):void
              if (event.target.currentFrame !== 3)
                        event.target.gotoAndStop("off");
    //===============================RB BUTTONS================================================
    RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState03);
    RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState04);
    function rollupState03(event:MouseEvent):void
              RBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast names clicked")
    function rollupState04(event:MouseEvent):void
              RBotherTextButton.CustomRadioButton.gotoAndStop(3);
              RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Breast text clicked")
    //======================================================================================== =======
    //===============================LB BUTTONS================================================
    LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState05);
    LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState06);
    function rollupState05(event:MouseEvent):void
              LBnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LBotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast names clicked")
    function rollupState06(event:MouseEvent):void
              LBotherTextButton.CustomRadioButton.gotoAndStop(3);
              LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Breast text clicked")
    //======================================================================================== =======
    //===============================RS BUTTONS================================================
    RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState07);
    RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState08);
    function rollupState07(event:MouseEvent):void
              RSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              RSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder names clicked")
    function rollupState08(event:MouseEvent):void
              RSotherTextButton.CustomRadioButton.gotoAndStop(3);
              RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Right Shoulder text clicked")
    //======================================================================================== =======
    //===============================LS BUTTONS================================================
    LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState09);
    LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState10);
    function rollupState09(event:MouseEvent):void
              LSnamesTextButton.CustomRadioButton.gotoAndStop(3);
              LSotherTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder names clicked")
    function rollupState10(event:MouseEvent):void
              LSotherTextButton.CustomRadioButton.gotoAndStop(3);
              LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
              trace("Left Shoulder text clicked")
    //======================================================================================== =======
    [/AS]
    There is probably a more efficent way to code this but im an AS noob :]

  • Adding a custom button to the Builtin Button Group of an MVToolbar object.

    I suspect this is not possible, however, I would like to add a custom button to the built-in button group of an MVToolBar object. I have attempted to do this with the following code:
    // Create an array of the built-in buttons I require
    var toolArry = new Array();
    toolArry.push(MVToolBar.BUILTIN_CIRCLE);
    toolArry.push(MVToolBar.BUILTIN_RECTANGLE);
    toolArry.push(MVToolBar.BUILTIN_REDLINE);
    // Create the MVToolBar object using the array items created above
    createLocToolBar = new MVToolBar("createLocShapes",toolArry,MVToolBar.HORIZONTAL);
    // Add the Toolbar to the map view object
    mapview.addToolBar(createLocToolBar);
    // Create the required custom button
    createLineBtn = new MVToolButton("createLine",MVToolButton.TOGGLE,"/i/blue_arrow_down.gif","/i/blue_arrow_up.gif");
    // Attempt to add the custom button to the built-in toolbar
    createLocToolBar.getBuiltInButtonGroup().add(createLineBtn);
    Upon running the above script, the built-in buttons I've defined in the array are displayed as expected, but the custom button does not appear (no errors are displayed either).
    If I comment out the above line and instead include the line below, the custom button is displayed, but of course this is not part of the built-in group.
    createLocToolBar.addButton(createLineBtn);
    Any assistance greatly appreciated,
    JR

    Thanks for the reply, Michael. I understand that the Login.jsp needs to be modified and redeployed, but the question is how to create a new button with the same look and feel as the Login button. Currently we have modified the Login.jsp with a "Forgot Password" html link, but it would be prefered to create a button to match what already exists. I understand that this might be outside the scope of this forum, but I was hoping that someone that has done this (specifically the original poster if he found a solution) could share the relevent code.

  • Radio Button group with images stored as BLOB files in database

    Hey all!
    I have radio button group, my idea is that radio button's LOV must display images, I mean BLOB files stored in a table.
    How can I do this?

    Hello Ken,
    I asked similar question in the past, and I believe the answer is still the same.
    Select List as an option of a Radio Group
    In your case, I think you can use a select list with added functionality, like "Select List with Branch to Page" or "Select list with Submit", or you can just attach an onChange event (JavaScript) to each select list. The effect should be similar to a radio group – as soon as the user select one item from any of the select lists, you can fire some action, based on the select list value.
    Hope this can help,
    Arie.

  • Variable pop-up using Button Group in WAD

    Hi experts,
    I've created a button group in WAD to execute a 'Copy' function developed in IP.
    This copy function has the following variables:
    Order From:
    Order To:
    Version From:
    Version To:
    This button group was created as it should referencing my copy function, with a dataprovider of type filter, and under 'Behavior' I have flagged the ' Display variable screen' field.
    So when I click on this button, it should give me a pop-up screen for me to enter those variable values.
    The problem is, it's not giving me this pop-up screen. Does anyone know why? Or if I've missed something.
    thanks
    Edited by: Ehab Mansour on Feb 28, 2008 10:48 AM

    Hi Maykan,
    I will give that a try, and let you know how it worked out.
    By the way, are you aware of any 'WAD' specific documentation that provied details and more WAD capabilities?
    thanks

  • WAD: Add variable to a called javascript function on button group item

    Hi All,
    I need your expertise regarding the following problem:
    To increase performance, I've decided to hide all analysis tables. To set these tables to visible, there is a button to switch the state for each table.
    Because this function is needed for each table, the function has two parameters for the analysis item name and the new state.
    Unfortunately, I get an useless error message after calling the function.
    The function in script item looks like
    function switchTable(itemName, newState)
    The function is started by a button of a button group item as javascript and the following script function
    switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    If I enter a without parameters, that will call the function with these parameters, it works.
    But if i try this directly from the script function in the button parameters, the function will be called correctly, but an error occurs and the analysis item wasn't displayed or the sendCommand wasn't processed completely.
    I hope there is a way to call javascripts by a button with variables, otherwise I would have to create many functions with only an other item_ref.
    Many thanks in advance and points of course for any help.
    Regards,
    Tobias

    One short note:
    It's possible to trigger the same function by an html input form button with onlick switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    and this works.
    Has anyone an idea what's the problem with a normal button item of the button group item?
    Another possibility is a menu item. The functions were called, but errors were shown.

  • Multiple button groups

    Hey everyone I am writing a program that contains 2 button groups(of radio buttons) and I am try to set a different value of Height for every height, and either the gender of male or female. But i can't get the getActionCommand to work with it. I don't know how to make it select one button for each group here is my code.
    import java.awt.* ;
    import java.awt.event.*;
    import javax.swing.*;
    public class IdealWeightCalculator extends JFrame implements ActionListener
      JRadioButton genderM, genderF;
      ButtonGroup  genderGroup;
      JPanel       genderPanel;
      JRadioButton heightA, heightB, heightC, heightD, heightE;
      ButtonGroup  heightGroup;
      JPanel       heightPanel;
      JTextField   resultText;
      JLabel       resultLabl;
      JPanel       resultPanel;
      double W,H;
      public IdealWeightCalculator() 
        setTitle( "Your Ideal Weight" );
        setDefaultCloseOperation( EXIT_ON_CLOSE );
        // gender group
        genderM = new JRadioButton("Male", true );
        genderF = new JRadioButton("Female", false );
        genderGroup = new ButtonGroup();
        genderGroup.add( genderM );  genderGroup.add( genderF );
        genderPanel = new JPanel();
        genderPanel.setLayout(
            new BoxLayout( genderPanel, BoxLayout.Y_AXIS ) );
        genderPanel.add( new JLabel("Your Gender") );
        genderPanel.add( genderM );  genderPanel.add( genderF );
        // height group
        heightA = new JRadioButton("60 to 64 inches", true  );
        heightB = new JRadioButton("64 to 68 inches", false );
        heightC = new JRadioButton("68 to 72 inches", false );
        heightD = new JRadioButton("72 to 76 inches", false );
        heightE = new JRadioButton("76 to 80 inches", false );
        heightGroup = new ButtonGroup();
        heightGroup.add( heightA ); heightGroup.add( heightB );
        heightGroup.add( heightC ); heightGroup.add( heightD );
        heightGroup.add( heightE );
        heightPanel = new JPanel();
        heightPanel.setLayout(
            new BoxLayout( heightPanel, BoxLayout.Y_AXIS ) );
        heightPanel.add( new JLabel("Your Height") );
        heightPanel.add( heightA ); heightPanel.add( heightB );
        heightPanel.add( heightC ); heightPanel.add( heightD );
        heightPanel.add( heightE );
        // result panel
        resultText  = new JTextField(7);
        resultText.setEditable( false );  
        resultLabl  = new JLabel("Ideal Weight");
        resultPanel = new JPanel();
        resultPanel.add( resultLabl );
        resultPanel.add( resultText );
        // content pane
        getContentPane().setLayout( new BorderLayout() );
        getContentPane().add( genderPanel, BorderLayout.WEST );
        getContentPane().add( heightPanel, BorderLayout.EAST );
        getContentPane().add( resultPanel, BorderLayout.SOUTH  );
        genderM.setActionCommand("male");
        genderF.setActionCommand("female");
        heightA.setActionCommand("1");
        heightB.setActionCommand("2");
        heightC.setActionCommand("3");
        heightD.setActionCommand("4");
        heightE.setActionCommand("5");
        genderM.addActionListener( this );
        genderF.addActionListener( this );
        heightA.addActionListener( this );
        heightB.addActionListener( this );
        heightC.addActionListener( this );
        heightD.addActionListener( this );
        heightE.addActionListener( this );
    public void malecalc(){
         W=(H*H)/28;
    public void femalecalc(){
         W=(H*H)/30;
    public void actionPerformed( ActionEvent evt) 
           /*if (evt.getActionCommand().equals("male")){
                if (evt.getActionCommand().equals("1")){
                     H=62;
                     malecalc();
           if (evt.getActionCommand().equals("male")){
                if(evt.getActionCommand().equals("1")){
                     H=62;
                     malecalc();
                else if (evt.getActionCommand().equals("2")){
                     H=66;
                     malecalc();
                else if (evt.getActionCommand().equals("3")){
                     H=70;
                     malecalc();     
                else if (evt.getActionCommand().equals("4")){
                     H=74;
                     malecalc();     
                else if (evt.getActionCommand().equals("5")) {
                     H=78;
                     malecalc();     
           else if (evt.getActionCommand().equals("female")){
                if(evt.getActionCommand().equals("1")){
                     H=62;
                     femalecalc();
                else if (evt.getActionCommand().equals("2")){
                     H=66;
                     femalecalc();
                else if (evt.getActionCommand().equals("3")){
                     H=70;
                     femalecalc();
                else if (evt.getActionCommand().equals("4")){
                     H=74;
                     femalecalc();     
                else if (evt.getActionCommand().equals("5")) {
                     H=78;
                     femalecalc();     
           resultText.setText( (W+"      ")  );
        repaint();                 
      public static void main ( String[] args )
        IdealWeightCalculator weightApp  = new IdealWeightCalculator() ;
        weightApp.setSize( 250, 225 );  
        weightApp.setVisible( true );       
    }

    solved it myself

  • Form UIBB: Radio Button Group: How to set default value?

    Hello,
    i've added a Radio Button Group in Forum UIBB (FPM_FORM_UIBB) with 3 possible values. How can I set the default value for this group? When starting the application, no radio button is selected..
    Thanks & Regards
    Christopher

    Hi Christopher,
    i've the same requiremnt for adding a Radio Button Group and 3 Radio buttons under it in Forum UIBB (FPM_FORM_UIBB) with 4 possible values..
    I have added 3 custom fields for 3 Radio buttons in the structure. In the desin time, I have added these 3 fields and taken as Radion button Group. But, Only label is coming on the output...
    I totally stuck here. Can you please guide me on this in details as to how to add the Radio buttons and how its action can be handled?
    It's bit urgent for me.
    Thanks in advance,
    Sumesh 

  • Radio button grouping across boxes

    I have 10 or so radio buttons on a shortcut screen that I need to put together in logical groupings.  I've grouped them in boxes; however, I need them to group as a single radio button grouping.  Is this possible?  When I try to put them in a grouping, I can only group those items within a given box...not all items in all boxes.
    Thanks in advance for your help.

    I dont think its possible to have in all diff box R-buttons in one group.

  • Buttons grouped to a a state of one MSO controlling a state of another MSO

    If you have a MSO that has the button grouped to the state so that when it is pressed a overlay pops up. Because the button is grouped you can no longer control other States in another MSO. The problem I am having is if one OL is open in one MSO and I click on another button in a different MSO I now have two OL open at the same time. I know if the button was not grouped with the state I could set each of the buttons to have two actions, first go to the off state of the opposing OL and then to the on state of that OL, but the button that is grouped does not give me the option to select states outside of its own MSO.

    Ok. Hope to see that solved one day, life will be easier :).
    BTW, just reminded me about multiple layouts support incompatibility with multi articles import (with sidecar.xml). Any idea if this will be solved? On of “selling features” for CS6 :).
    Martin

  • Button group and 'Other Components'

    Hullo,
    I am trying to insert in the gui a couple of exclusive buttons, in the sense that when one is on the other becomes off.
    I thought the component useful for that was 'Button Group'. Though when I insert it, it end up in the Other Components session and does not show in the main panel. Normal independent buttons work regularly by simply laying them in the panel.
    Thanks,
    Fabrizio

    In fact I found an example at:
    http://java.sun.com/docs/books/tutorial/uiswing/examples/components/RadioButtonDemoProject/src/components/RadioButtonDemo.java
    I managed to create a package and a class inside and to have it compiled - a feat to me as I started touching Java yesterday :-)
    Still I have no cue about how to invoke it from the main package. The example fares to dispatchers and the like, what I do not need presently as I only need to get the clicked button at a later time rather that invoking an event at the click.
    Basically how do I simply instantiate the class in the other package? Should I import the other file and how?
    This is what I tried that gives error lamenting it does not find the symbol and location class.
    This is the failed attempt:
    public static void main(String[] args) {
    myRadioButton RadioButtonDemo = new RadioButtonDemo;
    Thanks again.
    Fabrizio

  • WAD Button Group

    Hi All,
    I am doing some WAD report. In that report i am using Button Group. While changing the button group properties after assigning some action (In the WAD Button group ->Properties->Action Command ->Edit Command->Commands for web Template-> Export Web Application)  "Next" button is not getting activated.
    What is the reason, Please let me know.
    Thanks in advance,
    S.Murthy

    Hi Aduri,
    Yes, I am using WAD 7.0. I did like that only. i clicked on each button in the properities after that Edit Parmeter window then Edit Command -> Export web application
    then, "Next" button is not getting activated.
    Any reasons please let me know.
    Thanks,
    Satya

  • Add Button Group in WAD

    Hi All,
    I am working in BI 7.0. I am trying to create a new web template using WAD,
    but i am not finding a command button(push button) group in the library.
    Kindly help me to add a button group.
    Regards,
    Sheeba Rani

    Hi rani,
       according to  your answer.. i think  you are still using 3.X web application  designer.. only..  in  3.x WAD  you wont get  that button group web item..
      here i'm giving one link.. you just go thru that.. because 7.0 web application designer means. you will get  all the    web items..  same in this link..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/83/54973910a9bc12e10000000a114084/frameset.htm
      based on this you can check your  patch...  and  contact to ur BASIS   people..
    if it helpful to u.. plz ASSIGN POINTS
    regrads
    @jay

Maybe you are looking for