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

JTabbedPane: getTabForLocation(x,y)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.1
    • client-libs
    • beta
    • generic
    • generic



      Name: vi73552 Date: 05/27/99


      -1-
      The JTabbedPane does not allow to know which tab (and not its
      associated pane) is currently pointed by the mouse. So there is
      no way to add a "special" mouse handler.

      Ex.:
      - Bring a popup menu when r-click on a tab
      - Customize tab content when d-click.

      A method like getTabAT(x,y) or equivalent would be appreciated.

      -2-

      You also fixed the display of the Tab to a Label (which is a nice
      default). You could use the same approach you used with trees,
      lists and tables where a cell renderer can be set.

      ex: setTabRenderer(myOwnRenderer).
      (Review ID: 83567)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: