I am having trouble with my if statements being overlooked or something. In the code below for case 0, case 1 and case 2. I have a menu the user selects and it is to calculate depending on what the user selects. It calculates the same thing no matter which options is chosen. Could someone please let me know where I am going wrong. I am new to this and have spent many hours trying to adjust my code to calculate correctly. Thank you in advance for helping me with this.
Well I don't know what a "drop menu" is. Where in the API or documentation do you see that term?
I am new to this and have spent many hours trying to adjust my code to calculate correctly.
Well, then learn to simplify the problem.
I assume you are talking about a combo box, so create a simple JFrame with a single combo box. Then learn how to write simple test code for only that one component that simply displays a different message for each item select.
Then once you understand the basics of using a combo box you apply the knowledge to your real program. Its called a SSCCE.