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

JTabbedPane cannot be used as content pane of JFrame?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6, 1.2.0
    • client-libs



      Name: krT82822 Date: 01/12/99


      original synopsis: "JTabbedPane tab repaint problem"

      There is a repaint problem with JTabbedPane that is most easily reproducable by setting a JTabbedPane as the content pane of a frame. To see the
      problem, run the following code:

      JFrame f = new JFrame();
      JTabbedPane tp = new JTabbedPane();
      tp.add("Test", new JPanel());
      f.setContentPane(tp);
      f.setSize(200, 200);
      f.show();

      When the frame shows, partially cover the tab area with another window and then bring the example frame back to the front. You should see the
      tab painted twice.
      (Review ID: 36753)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: