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

REGRESSION: JFrame displays frame title and blinking cursor class called Edit

XMLWordPrintable

    • b73
    • x86
    • windows_2000, windows_xp

      Name: jk109818 Date: 04/10/2003


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

      FULL OS VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      Creating a class that is called Edit or edit and extends JFrame and displaying the frame, the application shows a blinking cursor in the top left corner. Using the mouse to select the position of the cursor, the text used in setTitle is displayed on a white background.

      This does not happen when the class is renamed.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Build and run the application (Test.java).



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      The Application should display an empty frame with a title set and NO blinking cursor.
      See description.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      class Edit extends JFrame
      {
      Edit() {
      setTitle("This shows up in a kind of textfield on Win2k");
      setSize(400,400);
               show();
          }

      }

      public class Test
      {
          public static void main(String args[]) {
             new Edit();
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Rename class Edit to Whatever

      Release Regression From : 1.3.1_06
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Review ID: 183372)
      ======================================================================

            son Oleg Sukhodolsky (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: