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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • client-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: