Search:

Type: Posts; User: william

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,164

    Re: need help with my java program

    all i did was add this in your code and ran it

    //your code
    originalDeposit = new JLabel("Enter amount of original deposit");
    originalField = new JTextField(7);// <----- here...
  2. Replies
    8
    Views
    1,164

    Re: need help with my java program

    exactly, timefield is a variable needs to be initialized timeField = new JTextField() some where. Its not your trying to use a null JTextField
  3. Replies
    8
    Views
    1,164

    Re: need help with my java program

    don't forget to


    public static void main(String args[]){
    calculator cal = new calculator();
    cal.setVisible(true);
    }
  4. Replies
    8
    Views
    1,164

    Re: need help with my java program

    the error tells you where you have not initialized the variable Line 62 see below

    timeField = new JTextField();
Results 1 to 4 of 4