jGRASP wedge2: exit code for process is 1. : Payroll (wrong name: payroll)Īt 1(Native Method)Īt (ClassLoader.java:631)Īt (ClassLoader.java:615)Īt (SecureClassLoader.java:141)Īt (URLClassLoader.java:283)Īt $000(URLClassLoader.java:58)Īt $1.run(URLClassLoader.java:197)Īt (Native Method)Īt (URLClassLoader.java:190)Īt (ClassLoader.java:306)Īt $AppClassLoader.loadClass(Launcher.java:301)Īt (ClassLoader.java:247)Ĭould not find the main class: Payroll. This is what is being generated with the errors. Please know I am new to Java and really appreciate your help. Thanks! I added the following and am now getting the following errors. Private class ExitButtonHandler implements ActionListener Netpay = Double.parseDouble(netpayTF.getText()) Ĭashadv = Double.parseDouble(cashadvTF.getText()) Totald = Double.parseDouble(totaldTF.getText()) ![]() Sss = Double.parseDouble(sssTF.getText()) Tax = Double.parseDouble(taxTF.getText()) Starting jGRASP: Most integrated development environments (IDEs) include a debugger. Gpay = Double.parseDouble(gpayTF.getText()) Rate = Double.parseDouble(rateTF.getText()) Public void actionPerformed(ActionEvent e)ĭouble days,rate,gpay,tax,sss,totald,cashadv,netpay ĭays = Double.parseDouble(daysTF.getText()) Public class CalculateButtonHandler implements ActionListener LOGGING IN On the computer screen you should see the login dialog box as shown below. NetpayL = new JLabel("Total Net Pay",SwingConstants.RIGHT) ĬbHandler = new CalculateButtonHandler() Running jGRASP in the microcomputer center: Step 1. TotaldL = new JLabel("Total Deduction:",SwingConstants.RIGHT) SssL = new JLabel("SSS (8%)",SwingConstants.RIGHT) ĬashadvL = new JLabel("Cash Advance:",SwingConstants.RIGHT) TaxL = new JLabel("With Tax(10%)",SwingConstants.RIGHT) GpayL = new JLabel("Gross Pay",SwingConstants.RIGHT) ![]() RateL = new JLabel("Rate Per Day",SwingConstants.RIGHT) Private CalculateButtonHandler cbHandler ĭaysL = new JLabel("Number of days Worked",SwingConstants.RIGHT) Private JTextField daysTF,rateTF,gpayTF,taxTF,sssTF,cashadvTF,deductionTF,totaldTF,netpayTF Private JLabel daysL,rateL,gpayL,deductionsL,taxL,sssL,cashadvL,totaldL,netpayL When I run the prograom, I am using jGrasp, the program runs with no errors identified in the code but I get the following window that pops up."No main methods, applets, or MIDlets found in file. Looking for Java help! I am working on the payroll program below and would like some help please.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |