Results 1 to 4 of 4
  1. #1
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question [SOLVED] Combo Boxes Automation

    I have a program with two comboboxes, they have the choice of 'Cm' or 'Inches' and the other combobox has 'Kg's' or 'lb's'.

    I want to know if it is possible to make the kg combo box change automatically depending on the choice made from the first measurement.

    If you select cm the other box changes to kg's

    If you select Inches the other box goes to lb's

    Thanks in advance for any help

  2. #2
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Default

    Can someone just tell me if this is possible to start with please?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Yes it's definitely possible, though my own preference for something with few choices like this is to use JRadioButtons.

    The key will be in the actionPerformed method

  4. #4
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

Similar Threads

  1. building automation software java issue
    By BASman in forum Advanced Java
    Replies: 6
    Last Post: 03-15-2009, 09:52 PM
  2. creation of one combo box form another combo box
    By er.tyagigaurav in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-09-2008, 04:14 PM
  3. Help- UI Automation using Java
    By amitshrivastva in forum Advanced Java
    Replies: 3
    Last Post: 11-05-2008, 03:32 PM
  4. Help! Need to randomly assign boxes
    By newb101 in forum New To Java
    Replies: 1
    Last Post: 09-16-2008, 11:57 PM
  5. Automation server can't create object
    By katie in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-06-2007, 11:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •