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

MouseListener on JTabbedPane with SCROLL_TAB_LAYOUT policy doesn't get events.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
      None

      Description

      On jdk1.4.
      Add mouse listener on JTabbedPane.
      Set SCROLL_TAB_LAYOUT policy to the JTabbedPane.

      Then when user clicks on tabs of that tabbed pane. There are no mouse events propagated to the mouse listener.
      The problem is, for drawing the scroll tab layout the tabbed pane UI uses internal components thus, breaking the contract.

      I guess the events have to be propagated to the JTabbedPane listeners just like when WRAP_TAB_LAYOUT policy is set, it shouldn't matter which method for drawing the component is used.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joutwatesunw Joshua Outwater (Inactive)
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: