Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2005

Tip: Looking for answers? Try searching our database.

Non-modal Dialog doesn't respond to mouse clicks

Thread view: 
Yulia - 25 Aug 2005 17:22 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.