Search:

Type: Posts; User: ben-der

Search: Search took 0.32 seconds.

  1. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    How do I access API doc?
  2. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    Dont really understand that, could I PM the question to anyone?
  3. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    So what I have to do now is to have a GUI with a number of text fields on it. There will be two income text fields, and 5 outgoingss text fields. With each of these text fields there will be a...
  4. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    Got it now it is parseInt the method. But when I run it I am getting the following error:

    Exception in thread "main" java.lang.NumberFormatException: For input string: ""
    at...
  5. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    Here is an example of my code:
    income1 = new JTextField();
    income1.setColumns(10);
    String in1Type = income1Type.getText();
    int intIn1Type = Integer.convertToIntMethod(in1Type);

    It is saying...
  6. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    Ok thanks, and then i just refer to it as intVal later then?
  7. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    Could you give an example for this sort of code?
  8. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    Still needing some help in different program now, but its related. I am using a GUI to ask users to enter some data such as income and outgoings. I have a text field for income and a text field for...
  9. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    OK Thanks folks, think I have it working now.

    Anyway, do you know how I could do a loop so that it does this over and over again for 24 seconds, and then stops?
  10. Replies
    22
    Views
    1,227

    Re: Threads in BankAccount program

    This is what I am getting:
    Bank Account Scenario
    Week is now underway
    Balance is now 2000.0
    Balance is now -250.0
    Balance is now -600.0
    Balance is now -50.0
    Balance is now -400.0

    I expect...
  11. Replies
    22
    Views
    1,227

    Threads in BankAccount program

    Hi, I am having to create a bank account program were there are inputs and withdraws from the account. The inputs only come in every so often, and the same with withdraws. For instance weekly wage is...
Results 1 to 11 of 11