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...
Type: Posts; User: JamesdTurnham
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...
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...
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?
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...
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...