Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4410828

Plugin authentication dialog easily lost behind other windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • deploy
    • x86
    • windows_2000



      Name: boT120536 Date: 02/01/2001


      java version "1.3.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
      Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

      The java plugin authentication dialogs do not stay in front of the applet they
      are associated with, so they are easily lost behind other windows, especially
      if several windows are open.

      This has been a problem for as long as I have been using the plugin (since
      1.2.0). I had hoped that along with the many imporovements in 1.3.0_01, this
      problem would have been addressed, but alas...

      It is not quite the same. Bug 4256028 says that although dialogs stay in
      front of the applet, events are still received by the applet. This is not
      the same as the problem I describe. My problem is specifically with login
      dialogs in the plugin for HTTP and proxy authentication. These dialogs
      seem to make no attempt to be modal since they do NOT stay in front of the
      applet. Here is some code that demonstrates the problem:

      import java.io.*;
      import java.net.*;
      import javax.swing.*;
      import java.awt.event.*;

      public class AuthTest extends JApplet implements ActionListener {
                 public void init() {
                           JButton b = new JButton("Connect");
                           getContentPane().add(b);
                           b.addActionListener(this);
                 }

                 public void actionPerformed(ActionEvent e) {
                           try {
                                     // sorry. don't know of a preexisting url
      you can use
                                     URL url = new URL
      ("URL.requiring.authentication");
                                     InputStream is = url.openStream();
                                     is.close();
                           } catch (Throwable t) {
                                     t.printStackTrace();
                           }
                 }
      }


      1) Press the connect button.
           A login dialog appears.
      2) Click somewhere on the applet window.
           The applet window jumps to the front, obscuring the login dialog.


      This bug causes a good amount of confusion for our users.



      (Review ID: 116177)
      ======================================================================

            djayaramsunw Devananda Jayaraman (Inactive)
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: