Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.4K Development
- 17 Developer Projects
- 139 Programming Languages
- 293.1K Development Tools
- 111 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 161 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 475 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Modal dialog problem (even after workaround)

324210
Member Posts: 4
Hi,
I've got a modal dialog which I want to call shotTopic() from.
I've registered my dialog with the Help object, as explained in the documentation, and the help dialog appears fine.
But it's modal. This is no good. The user can't use the dialog until they close the help.
I realise you state in the documentation that this is Java's fault, but with a simple test, I can create my own dialog that is non-modal, and has my first dialog as a parent, and it all works.
All I believe I need to do is have the help dialog's parent set to be my dialog, and also have it as non-modal, and it should all work.
Is there any way to achieve this please ?? If not, I'm going to have to migrate back to Javahelp, as we can achieve it there (even though their system isn't half as nice).
Thanks for any info.
Michael.
I've got a modal dialog which I want to call shotTopic() from.
I've registered my dialog with the Help object, as explained in the documentation, and the help dialog appears fine.
But it's modal. This is no good. The user can't use the dialog until they close the help.
I realise you state in the documentation that this is Java's fault, but with a simple test, I can create my own dialog that is non-modal, and has my first dialog as a parent, and it all works.
All I believe I need to do is have the help dialog's parent set to be my dialog, and also have it as non-modal, and it should all work.
Is there any way to achieve this please ?? If not, I'm going to have to migrate back to Javahelp, as we can achieve it there (even though their system isn't half as nice).
Thanks for any info.
Michael.
Comments
-
Hi Michael,
The only reliable way to show help from a modal dialog
across platforms and JDK versions is for the help dialog
itself to also be modal. This has the problem of blocking
the application dialog until the help window is closed.
OHJ 4.1 needed to maintain JDK 1.1.8 compatability for
some of our customers. The API to create a Dialog with
a modal dialog as it's parent was introduced in Java 2.
We often use reflection in OHJ 4.1 to use some of the
Java2 APIs (like Java 2 printing) when running on later
JDKs, but for a variety of reasons that wasn't a good
approach for us with this issue.
We are actively working on a new branch of OHJ (OHJ 4.2)
that will require JDK 1.3.1 and later (it will also be
certified against JDK 1.4.x), and will use the Dialog
APIs you asked about. Note that this will not solve
the modal window problem entirely (there is no getting
around it until JavaSoft implements JDC bug 4080029),
but it will allow interaction between a modal application
dialog and a help dialog.
I'd be interesed in knowing what your schedule requirements
would be for obtaining this new release, as we'd certainly
like to keep you as an Oracle Help for Java user. You can
contact us off the mailing list at [email protected] -
Hi,
I sent an email to the provided address (and when that away-bounced, to the address it provided) but have yet to receive a reply.
Our timescale requires that I have the code working within the next couple of weeks, and will likely ship in November. Therefore, unless I can get a suitable working version within the next couple of weeks, I will be forced to regress to using Javahelp, which pleases neither myself, nor the technical authors.
If there is a working version we could use, it would certainly solve our problem, but unfortunately I can't hold off much longer.
Thanks again for any help.
Michael
This discussion has been closed.