Marcel Ruff wrote:
> 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?
Works just fine on both 1.1.7v3 and 1.2 pre-v2 for me.
--
Björn Smith Compound Systems AB, phone +46 8 4464260
Email: [EMAIL PROTECTED]
URL: http://www.compound.se
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]