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

JTextField does not get focus with Netscape 4.X,6.X/JRE 1.3.1_02

    Details

    • Subcomponent:
    • Resolved In Build:
      04
    • CPU:
      x86
    • OS:
      windows_nt, windows_2000

      Description

      Name: gm110360 Date: 01/30/2002

      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
      Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Windows NT Version 4.0 (Build 1381:Service Pack 6)

      A DESCRIPTION OF THE PROBLEM :
      There appears to be a problem with JTextField when using JRE 1.3.1_02 with Netscape 4.X/6.X browsers.

      The JTextField does not appear to gain the focus when selected with the mouse. Namely, I cannot enter text into the field. If I select another window and come back, the problem will usually correct itself.
      The problem does not occur in JRE releases prior to the 1.3.1_02.

      (I have also seen this symptom mentioned in at least one forum thread recently.)

      REGRESSION. Last worked in version 1.3.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.create a JApplet that instantiates a JTextField
      2.load the applet using JRE 1.3.1_02/Netscape 4.X or 6.X
      3.click on the JTextField nothing will happen, at the
      very least reload the applet this will most certainly
      cause the problem.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Cursor should flash inside of JTextField and input should be allowed. With this problem, text cannot be entered into the field.

      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class apptest1 extends JApplet {

      public JTextField jt = new JTextField(20);
      public JLabel jl = new JLabel("Enter");
      public JTextField jt2 = new JTextField(20);
      public JLabel jl2 = new JLabel("Enter2");
      public JPanel jp = new JPanel();

      public apptest1() {
      super();
      }
      public void init()
      {
      super.init();
      jp.add(jl);
      jp.add(jt);
      jp.add(jl2);
      jp.add(jt2);
      this.getContentPane().add(jp);
      }
      }

      ---------- END SOURCE ----------
      (Review ID: 138963)
      ======================================================================

      Name: gm110360 Date: 01/31/2002


      FULL PRODUCT VERSION :
      java version "1.3.1_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
      Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      ADDITIONAL OPERATING SYSTEMS : Windows XP


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Netscape 4.78 and Netscape 6.1 (not tested under other
      version of Netscape)

      A DESCRIPTION OF THE PROBLEM :
      When I launch my applet in Netscape using 1.3.1_02, the JTextField's, JTextArea's, and JComboBoxes, don't receive focus when I click on them (i.e., I don't see the cursor, I can't highlight, and if I type after clicking nothing
      happens.) The other controls, JRadioButton, JCheckBox, etc work fine. Once I click outside of the applet in the web page or in any other window on my desktop and then click back in the applet the focus starts working again. If, for
      example, you have the Show Console option selected so that the console window comes up in the foreground when the applet is initialized, you won't see the problem because you have basically done the same as clicking on another
      window to receive focus and clicked back on the applet.

      This is happening on Netscape 4.78 and Netscape 6.1. It works fine in IE 5.5. I haven't tested any other browser versions. It also works fine in Netscape with the 1.3.1_01 plugin. It appears to only be broken in the _02 release
      with Netscape.

      Note: this applet was compiled under 1.22 so it does not use any 1.3 specific features.

      REGRESSION. Last worked in version 1.3

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Make sure the Show Console option is not turned on in the Java Control Panel.
      2. Start Netscape.
      3. Launch web page with an applet containing a JTextField.
      4. Immediately click in the text field before clicking anywhere outside the applet.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      I expect to be able to highlight text or modify text in a JTextField without clicking in an unrelated window to move the focus out and back in first.

      This bug can be reproduced always.

      CUSTOMER WORKAROUND :
      Click in the web page containing the applet, or another window on your desktop before using the applet.
      (Review ID: 139064)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              hgodugusunw Harsha Godugu (Inactive)
              Reporter:
              gmanwanisunw Girish Manwani (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: