>>>>> Dimitris Vyzovitis writes:

    Dimitris> Hi everyone,
    Dimitris> It appears there is a nasty bug in a modal dialog's
    Dimitris> construction process.  If I subclass a modal dialog that
    Dimitris> appears in its constructor (ie the constructor ends with
    Dimitris> the typical pack(); show(); setResizable( false ); ),
    Dimitris> the subclass constructor doesn't get called unless the
    Dimitris> dialog is disposed.

This behavior is correct. show() on a modal dialog will block until
the dialog is hidden by calling hide() or dispose().

By the way: This means that your setResiable(false) will have no
effect because it won't get executed until the dialog is hidden.

    Dimitris> What happens is that the message only appears after the
    Dimitris> dialog is disposed!!!!  This DOESN'T happen in windows,
    Dimitris> jdk1.1.7a (still there ;-} )

If show() doesn't block immediately on windows then it's a bug in
windows JDK.


        Juergen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802

Reply via email to