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

REGRESSION:"Background" text in ComboBox is not entirely displayed

    XMLWordPrintable

    Details

      Description


      ###@###.### 2004-01-22


      CAP Bug Submission Form - Windows XP & JComboBox

      Your Name: Jean-Bernard Clerin
      Company Name: JBCSolutions

      J2SE Version (please include all output from java -version flag):
          java version "1.5.0-beta"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32)
          Java HotSpot(TM) Client VM (build 1.5.0-beta-b32, mixed mode)

      Does this problem occur on J2SE 1.3 or 1.4.x? Yes / No (pick one)
          No

      Operating System Configuration Information (be specific):
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

      Hardware Configuration Information (be specific):

          Platform configuration:

          CPU: Intel 32bit Single Processor
          Processor Speed: 1893 MHz

          Operating System:
          Windows XP (version 5.1 Service Pack 1 (Build 2600))

          DirectX version: DirectX 8.1 or greater

          DirectX display devices:
          Device 0:
            Resolution (width x height x depth): 1024 x 768 x 32
            Device driver nv4_disp.dll version 6.13.10.3638

          GDI display devices:
          Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 460 Go (Toshiba)

      Bug Description:
      The word "Background" in ComboBox is not entirely displayed.

      Steps to Reproduce (be specific):
      - Compile and execute the source code attached.

      ==========================================================

      /**
       * JComboBoxJ150.java
       */
      import java.lang.*;
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;
      import javax.swing.event.*;

      /**
       * Class: JComboBoxJ150
       */
      public class JComboBoxJ150 extends JFrame
         {
          /**
           * Constructor: JComboBoxJ150
           * @return instance of JComboBoxJ150
           */
          public JComboBoxJ150()
             {
              super();
              setBounds(100,100,200,200);
              JComboBox comboBox = new JComboBox();
              comboBox.addItem("Background");
              comboBox.addItem("Foreground");
              JPanel panel = new JPanel();
              panel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER,5,5));
              panel.add(comboBox);
              getContentPane().add(panel,java.awt.BorderLayout.CENTER);
             } /* End of Constructor: JComboBoxJ150 */

          /**
           * Method: generalHandleException <br>
           * @param java.lang.Throwable exception
           * @return void
           */
          protected void generalHandleException(java.lang.Throwable exc)
             {
              /* Remove this comment and specialize processing here. */
              exc.printStackTrace(System.err);
             } /* End of Method: generalHandleException */

          /**
           * Method: main <br>
           * Note: Called only if we're an application. <br>
           * @param java.lang.String[] args the command line arguments
           * @return void
           */
          public static void main(java.lang.String[] args)
             {
              try
                 {
                  /* Set native look and feel */
                  javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());

                  /* Creates new MainObject */
                  JComboBoxJ150 self = new JComboBoxJ150();
                  /* Remove this comment and specialize processing here. */
                  self.show();
                 } /* End try */
              catch (java.lang.Throwable exc)
                 {
                  /* Remove this comment and specialize processing here. */
                  exc.printStackTrace(System.err);
                 } /* End catch */
             } /* End of Method: main */

         } /* End of Class: JComboBoxJ150 */

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kizune Alexander Zuev
              Reporter:
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: