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

The text is cut off in JTabbedPane's tabs with Windows LAF

    Details

      Description

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

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The text is cut off at the bottom for JTabbedPane's tabs when Windows LAF is installed and tabs are displayed in several rows (WRAP_TAB_LAYOUT).

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Reproducable 100%. See source code

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Not cut off text
      ACTUAL -
      Cut off text

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public static void main(String[] args) throws Exception {
        UIManager.setLookAndFeel(
          "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

        JFrame frame = new JFrame("TabPanelMenu");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JTabbedPane pane = new JTabbedPane();
        pane.setFocusable(false);

        pane.addTab("Company Focus", new JLabel("Tab One"));
        pane.addTab("Hierarchy Timestamps", new JLabel("Tab Two"));
        pane.addTab("Tradenames/Indications", new JLabel("Tab Three"));

        frame.getContentPane().add(pane);
        frame.setSize(new Dimension(300, 300));
        frame.setVisible(true);
      }

      ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peterz Peter Zhelezniakov
                Reporter:
                ndcosta Nelson Dcosta (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: