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

Removing the TabComponent from the the Tab is not behaving properly.

    XMLWordPrintable

    Details

      Description

      Please compile and run the attached test case with the latest Swing PIT (Containing the fix for Tabs as JComponent).

      Steps to reproduce:
      ------------------
      1) Compile and run the attached test case.
      2) Click on the "Remove the Button from Tab" button. This will remove the tab component and add it a JPanel (Pink colored).
      3) We can see that the tab component is removed.
      4) Now Change the look and feel from the Look and Feel menu to windows.
      5) Notice that the TabComponent (JButton in this case) comes back on the tab.

      There is one more bug filed similar to this. But that bug is about removing the component on the Tab page. This one is removing the component from the Tab and not the TabbedPane's Page. Please see Bug#6252222 (Adding a tab component to another parent should clean up tabbed pane )


      ###@###.### 2005-04-14 07:57:49 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shickeysunw Shannon Hickey (Inactive)
              Reporter:
              mjoshisunw Mayank Joshi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: