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

JTabbedPane's HTML title has incorrect offset

XMLWordPrintable

    • beta
    • sparc
    • windows_nt



      Name: apR10133 Date: 08/14/2000


          The HTML titles at JTabbedPane's tabs paints too ugly. Title's text
      has incorrect offset to the left side. Compile and run the testcase:

      ------------------------- Test.java ---------------------------------
      import javax.swing.*;

      public class Test {

          public static void main(String[] argv) {
      JFrame fr = new JFrame("Test");
      JTabbedPane tabs = new JTabbedPane();
      fr.getContentPane().add(tabs);
      tabs.addTab("<html>Label</html>", new JPanel());
      tabs.addTab("Label", new JPanel());
      fr.setSize(200,200);
      fr.setVisible(true);
          }
      }
      ---------------------------------------------------------------------
      ======================================================================

            apikalev Andrey Pikalev
            apikalev Andrey Pikalev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: