Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
modal dialogs in an applet
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
zachary  
View profile  
 More options Feb 9 1999, 3:00 am
Newsgroups: comp.lang.java.gui, comp.lang.java.help, comp.lang.java.machine, comp.lang.java.programmer, comp.lang.java.softwaretools
From: zach...@sempers.com
Date: 1999/02/09
Subject: modal dialogs in an applet
Hello,

We have a problem where the most elegant solution would be to
implement a modal dialog from within our applet while running under a
browser.  In brief, a user enters an html page, and to fill in some of
the fields on that html page, we pop open a modal search window, and
then put the information into the relevant field.

The problem is, of course, that while modal dialogs behave modally
under appletviewer and hotjava, both Netscape and Microsofts's
implementations do not behave as advertised.

I'm sure that someone has spent a good six months banging their head
against a keyboard figuring this one out.  Rather than reinvent the
wheel, I thought maybe some of you might be kind enough to share a
better way.

Thanks in advance for any help.

Best,

--zjs
zach...@sempers.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulrich Schmidt  
View profile  
 More options Feb 9 1999, 3:00 am
Newsgroups: comp.lang.java.gui, comp.lang.java.help, comp.lang.java.machine, comp.lang.java.programmer, comp.lang.java.softwaretools
From: Ulrich Schmidt <ulrich.schm...@nospam.vew-telnet.net>
Date: 1999/02/09
Subject: Re: modal dialogs in an applet

zach...@sempers.com schrieb:

We had to deal with the same Problem. What happens is that the execution
of the code is 'modal'. However the Applet is still enabled for Events and
handles them.

What we did was somthing like this:

void launchModalDialog()
{
    this.setEnabled(false);                                       //
disable the Applet
    try
    {
        MyDialog myDialog = new MyDialog(this, true);
        myDialog.setVisible(true);                                //launch
the Dialog
    }
    catch(Exception e)                                            // you
should do this here or
                                                                  // if
the Dialog dies the Applet hangs...
    {
        System.err.println(e);                                    // make
shure you see the Error
    }
    this.setEnabled(true);                                        //enable
the Applet again

}

Didn't like that very much. But it worked most of the time.

Ulrich
--
ulrich.schmidt at vew-telnet.net

Reply via E-Mail without 'nospam.' :-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gustav Weslien  
View profile  
 More options Feb 9 1999, 3:00 am
Newsgroups: comp.lang.java.gui, comp.lang.java.help, comp.lang.java.machine, comp.lang.java.programmer, comp.lang.java.softwaretools
From: "Gustav Weslien" <gus...@netwave.se>
Date: 1999/02/09
Subject: Re: modal dialogs in an applet
If you are using the 1.1 event model, you can register a listener to your
dialog that monitors if it loses focus, and if so, reclaims it. I haven't
managed to use the regular dialog modal feature on an applet at all )=

If you want to use dialogs in an applet, you have to iterate the applets
getParent() until it is an instance of Frame, and use that as a part of your
instatiation.

Then just create a class that extends Dialog and listens for focusLost().

that should work!

Cheers,

Gustav

<zach...@sempers.com> wrote in message

news:36bfae13.698065585@news.pacbell.net...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »