Skip to main content

Javahelp doesnot have focus for modal dialogs(Urgent)

6 replies [Last post]
priya_smit@yahoo.com
Offline
Joined: 2006-02-17

When I open a modal dialog box in my java application the javahelp doesnt have focus anymore.

Has this bug been fixed in JDK1.4.1.???

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
priya_smit@yahoo.com
Offline
Joined: 2006-02-17

Hey I have tried using the helpbroker.setActivationWindow for modal dialogs but it doesnt have that method at all.
It gives an error.

Roger Brinkley

javahelp1@JAVADESKTOP.ORG wrote:

> When I open a modal dialog box in my java application the javahelp doesnt have focus anymore.
>
> Has this bug been fixed in JDK1.4.1.???

See the answer to same question you posted in the forum.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

brinkley
Offline
Joined: 2003-06-06

Welcome to the wonderful world of modals. Unfortuantely there isn't the capability to define a dialog box as "system focus" so the only way to handle this is reparent help window, if one exists, when you bring up a modal. I think helpbroker.setActivationWindow will do that if you need it to. Just make sure you unset it when the modal disappears.

Binky

Priyanka Agarwal

Hi ,
I have tried using helpbroker.setActivationWindow .
But this method is not recognized by jh2.0.

Its giving an error.

javahelp1@JAVADESKTOP.ORG wrote:
Welcome to the wonderful world of modals. Unfortuantely there isn't the capability to define a dialog box as "system focus" so the only way to handle this is reparent help window, if one exists, when you bring up a modal. I think helpbroker.setActivationWindow will do that if you need it to. Just make sure you unset it when the modal disappears.

Binky
---
[Message sent by forum member 'brinkley' (Roger Brinkley)]

http://www.javadesktop.org/forums/thread.jspa?messageID=12539?E

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Roger Brinkley

Priyanka Agarwal wrote:

> Hi ,
> I have tried using helpbroker.setActivationWindow .
> But this method is not recognized by jh2.0.
>

It's in the DefaultHelpBroker so you have to cast your HelpBroker or
verify it's the DefaultHelpBroker.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

priya_smit@yahoo.com
Offline
Joined: 2006-02-17

Ya I have got it. But the maximize and minimize buttons disappear if I make the parent as dialog.
And moreover the Help is always on top.

Priyanka