Search:

Type: Posts; User: sindreb

Search: Search took 0.19 seconds.

  1. Thread: Guessing Game

    by sindreb
    Replies
    7
    Views
    477

    Re: Guessing Game

    What you need is a loop. For example you can use a while loop like this:
    while(input!=comp){}
  2. Replies
    9
    Views
    307

    Re: Problem with Formatters (I think)

    So, how do I close the writer? :confused: I'm sorry, but I'm kinda new to java
  3. Replies
    9
    Views
    307

    Re: Problem with Formatters (I think)

    Yeah, it is automaticly filled with "Write what you want to send to the file". I also checked a bit, and the file data.txt is being created, but it never gets any data. I also tried to put some text...
  4. Replies
    9
    Views
    307

    Re: Problem with Formatters (I think)

    Thanks! Found out I never initialized the Formatter if the file did'nt exist. Now my problem is that the second textfield, fromFile, does not display anything. Any clue on how I can fix that?
  5. Replies
    9
    Views
    307

    Re: Problem with Formatters (I think)

    Sure
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at FileHandling.writeFile(FileHandling.java:35)
    at GUI$HandlerClass.actionPerformed(GUI.java:37)
    at...
  6. Replies
    9
    Views
    307

    Problem with Formatters (I think)

    Hi!
    I'm trying to make a program with gui. The window should have 2 textfields and one button. One of the textfield are uneditable. When the button is clicked i want the stuff from the first...
Results 1 to 6 of 6