Search:

Type: Posts; User: JamesdTurnham

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,654

    Re: Event Listener for ComboBox

    I've redone my code and have tried to emulate the examples from the Oracle website but I still keep getting errors. Most of them are <identifier> expected. In this case the bolded part is where I...
  2. Replies
    8
    Views
    1,654

    Re: Event Listener for ComboBox

    How do I tell the program in the actionPerformed method to go through each JComboBox? Also if I put the action listener in the "construction box" I get compiling errors. When I add the...
  3. Replies
    8
    Views
    1,654

    Re: Event Listener for ComboBox

    I understand what your saying but the next question is how to implement it. I presume I assign each of the JComboBox options a defined variable and then use that for the calculations?
  4. Replies
    8
    Views
    1,654

    Re: Event Listener for ComboBox

    I sat around after I posted this and got it to work somewhat. I had a option message box appear and it would always give me a 0 or a 0.0

    Also when I do the calculations I need to convert from...
  5. Replies
    8
    Views
    1,654

    Event Listener for ComboBox

    I have the code for the JPanel and JComboBox and I want it so that when the user selects "Compact" from the combobox it the code then inputs 25 into a MPG variable and does it's calculations. The...
Results 1 to 5 of 5