New problems...
My buttons don't exactly work. My fields are empty, so I understand my calculate button not working, but why wouldn't the exit button work? I fixed it to where all my required fields have a starting entry of 0, but it just confuses me on why my exit button wouldn't work.
User Profile
Collapse
-
Okay, figured that problem out...but it doesn't do exactly what I want it to do...
I want it to be where the user inputs the number of hours worked in a week, their tips accumulated through the week, and the rate is stored in the program where it'll calculate the gross, take out a percent estimated as the tax and show net pay for the week. Then when you want to, you can hit the calculate button and make it show gross amount for the month,...Leave a comment:
-
I just don't know what to do cause I write it by pieces and put it all together...and all my other programs are similar...I just don't know why nothing shows still...It's awfully long and deals with GUIs...multiple JPanels, blah blah blah...I'm just trying to learn how to use different layout types and it's just crashing on me. I suppose me posting the code wouldn't hurt.
...Code:import java.io.*; import javax.swing.*; import
Leave a comment:
-
Set the visibility of the first JFrame to false and set the other to true.Leave a comment:
-
Can't figure out why nothing shows
I have this massively long(to me) code and I get so excited that it's finally finish so I go to compile it to only get 18 errors then after figuring out almost all the errors, I run the program and nothing shows...can anyone help??? I don't know whether I should post the entire code or not... -
I was...Code:switch(key) { case 'a': System.out.println("You typed A"); break; case 'b': System.out.println("You typed B"); break; case 'c': System.out.println("You typed C"); break; case 'e': System.out.println("You typed E"); break; default: System.out.println("Invalid key type"); break;Leave a comment:
-
You could always just use a switch case. I don't know much about java, but that's what I would do! Even though the code would be relatively long and repetitive, it'll work out the way you want it to.Leave a comment:
No activity results to display
Show More
Leave a comment: