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

BorderLayout works incorrectly with ExtB character

XMLWordPrintable

    • Cause Known
    • other, x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP Professional with SP1a (Simplified Chinese)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      NetVista M42 8307-41C (CPU: Pentium 4 2.4GHz, Memory: 512MB, Video: Intel 82845G)

      A DESCRIPTION OF THE PROBLEM :
      BorderLayout works incorrectly with ExtB character
      A JFrame window appear, South and North JTextField can't displayed

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Run testcase 'java LayoutExtBTest'
       2. A JFrame window appear, South and North JTextField can't displayed <- PROBLEM

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      South and North JTextField should be display with an Ext.B character.
      ACTUAL -
      A JFrame window appear, South and North JTextField can't displayed

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      nothing

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      final String DBCSSTRINGS = "Test\uD840\uDC00";


      // Constructor
      public LayoutExtBTest() {
      this.CompKind = "swing";
      this.CompName = "JTextField";

      // invoke made comp. method
      makeComp(CompKind, CompName);

      }

      void makeComp(String compKind, String compName) {
      mainFrame = new JFrame();
      mainFrame.setTitle("Unicode4.0 test case ");
      addJTextFieldComp();

      // show main frame
      mainFrame.setSize(300, 200);
      mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      mainFrame.setVisible(true);
      // mainFrame.pack();
      }


      void addJTextFieldComp() {
      JTextField jb1 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
      JTextField jb2 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
      JTextField jb3 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
      JTextField jb4 = new JTextField(DBCSSTRINGS, JTextField.CENTER);
      JTextField jb5 = new JTextField(DBCSSTRINGS, JTextField.CENTER);

      mainFrame.getContentPane().add("North", jb1);
      mainFrame.getContentPane().add("South", jb2);
      mainFrame.getContentPane().add("Center", jb3);
      mainFrame.getContentPane().add("West", jb4);
      mainFrame.getContentPane().add("East", jb5);
      }
      ---------- END SOURCE ----------

            peterz Peter Zhelezniakov
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: