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

RFE: Option to have close(x) button on JTabbedPane

XMLWordPrintable



      Name: jk109818 Date: 05/28/2003


      A DESCRIPTION OF THE REQUEST :
      An option to have a close(x) button on a tabbed pane would be very useful.

      JUSTIFICATION :
      Applications which we develop require for tabs to be added at runtime. Also the relevance of these data is not for the entire lifetime of the application.

      Plus, when a dynamic addition and removal is allowed programmatically, a button allowing the user to do the same should also be available.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      There should be a close button (x-button) on the top right corner of each tab, which should preferably have a mouseover highlight and which when on clicking should cause the tab to close.
      ACTUAL -
      No such functionality is presently available.

      CUSTOMER SUBMITTED WORKAROUND :
      Presently I have subclassed the JTabbedPane class and overridden paint() and installed my own EventListener to handle mouse over property changes.
      (Review ID: 186259)
      ======================================================================

            alexp Alexander Potochkin (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: