Hi,
the following little examples doesnt return (about every second time).
Especially when you first click in the text area and write some letters
and than click OK, the final System.out.println() is never printed.
-----------------------------------------
import javax.swing.JOptionPane;
import javax.swing.JFrame;
public class ModalEvent
{
static public void main(String[] args)
{
System.out.println("Testing JDialog events ...");
JFrame frame = new JFrame("Hello");
String str = JOptionPane.showInputDialog(frame,
"Please enter: ",
"Modal not returning",
JOptionPane.QUESTION_MESSAGE);
System.out.println("SUCCESS: str=" + str);
}
}
------------------------------------------
Could anybody try on his/her machine if it works there?
Sometimes i had the feeling, that the shorte my CLASSPATH was, the
better the situation ?!*~ ;-(
thanks for any hint,
Marcel
(Im using Linux glibc with JDK 2 pre2)
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]