Hi,
I'm a new SWING developer.
I open in my application a Dialog which is MODAL(lets call it D1). I
use for that: setVisible( true );
>From D1 dialog I open another Dialog (D2) that has to be NON-MODAL.
The problem is that D2 doesn't respond to mouse clicks as long as D1 is
open.
If I start the D1 as a NON-MODAL dialog, then D2 does respond to
mouse-clicks.
Why does it happen?
How can I fix it leaving the D1 as MODAL dialog?
Thanks in advance for your replies!
Yulia
Monique Y. Mudama - 25 Aug 2005 17:47 GMT
> Hi,
>
[quoted text clipped - 10 lines]
> Why does it happen? How can I fix it leaving the D1 as MODAL
> dialog?
Do they both have the same parent? (Frame)

Signature
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Andrew Thompson - 25 Aug 2005 17:47 GMT
> I'm a new SWING developer.
Swing is not an acronym, just a (silly) word.
> I open in my application a Dialog which is MODAL(lets call it D1). I
> use for that: setVisible( true );
>From D1 dialog I open another Dialog (D2) that has to be NON-MODAL.
Why? What is the point or advantage to being
able to access dialog 1* when dialog 2 is open?
* Given dialog 1 is modal, it is the only thing you
will be able to access from you non-modal dialog 2.

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"So I've got some advice for you, little buddy,.."
Tool 'Hooker With A Penis'
Vova Reznik - 25 Aug 2005 18:28 GMT
>>I'm a new SWING developer.
>
[quoted text clipped - 10 lines]
> * Given dialog 1 is modal, it is the only thing you
> will be able to access from you non-modal dialog 2.
To make it working second dialog (D2) has to have
D1 as parent, not parent frame.
Yulia - 30 Aug 2005 09:49 GMT
Hi All,
You are absolutely right! If the parent of D2 is D1 the problem is
solved!
Thanks you all very much!
Yulia