?
Solved

Modal JWindow without(!!!) further processing in the disabled JFrame?

Posted on 2003-02-20
6
Medium Priority
?
520 Views
Last Modified: 2012-08-13
Hello,

Goal:
Modal Window without title and compatible to SDK 1.3. (so no setUndecorated(true)) ?

Part of the Solution:
Disable the orignial window (the window from which the modal window is opened) using setEnabled(false).
until then there is no problem.

But the orignal window doesn't stop processing as if you would actually use a modal JDialog!

So the question is:
How to stop further processing within the orignial window from within the opened modal window?

Best regards, Raffael Vogler
0
Comment
Question by:raffael
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:membersh
ID: 7991755
a bit confusing. The default behavior of modal dialog is that it stops calling window's processing. U want to stop processing or continue processing from Modal window ??
0
 

Author Comment

by:raffael
ID: 7994581
If I say modal window I mean a JWindow that effectively behaves like a modal JDialog.

I derive a class from JWindow and provide a public static method to open the modal (J)Window. But if I call this static method twice there are (of course) two modal (J)Windows at the same time. To prevent the second window from opening before the first has been closed I want to stop further processing in the original window, from which the two modal (J)Windows have been started.

Best regards, Raffael Vogler
0
 
LVL 1

Accepted Solution

by:
membersh earned 200 total points
ID: 8005859
>I mean a JWindow that effectively behaves like a modal JDialog.

Can follow the same a bit further. 2 Options. 1. Disable all the UI elements in the first window. Suggested if it is an UI event which triggers opening the second window.

2. Have a boolean flag in 2nd window which holds the state of this window. ie., when window is open, it is true & it is made false in its windowClose(). Check for this flag b4 processing the events in the first window.
0
 

Expert Comment

by:CleanupPing
ID: 9059203
raffael:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 7

Expert Comment

by:tomboshell
ID: 9553749
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept membersh's comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thomas Boshell
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question