help me java guru out there...?

From: gavin (gautehe_at_stud.ntnu.no)
Date: 10/27/03

  • Next message: K.Koper: "Re: help me java guru out there...?"
    Date: 27 Oct 2003 06:12:37 -0800
    
    

    I need help using a created JFrame as a dialog. I`m guessing I`ll have
    to use wait() and notify() in some way, but can`t figuer out how...
    Here is what I want the program to do:

    String myText;
    boolean finished = false;

    while (!finished){
       //Myframe extends JFrame and has some pictures, a textbox and an
    okButton.
       MyFrame aframe = new MyFrame();
       desktop.add(aFrame);

       //WAIT HERE UNTIL I PUSH THE OKBUTTON!
       myText = aframe.getText();

       //Method that saves text to a file
       saveToDisk(myText);

       //checkes if the loop should end
       finished = checkFinished();
    }

    any help would be most helpfull :)


  • Next message: K.Koper: "Re: help me java guru out there...?"