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

JTabbedPane.getBoundsAt() returns incorrect value in SCROLL_TAB_LAYOUT mode

XMLWordPrintable

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

      Given this piece of code

      JTabbedPane tabpane = ...;
      tabpane.setTabPlacement(JTabbedPane.BOTTOM);
      tabpane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);

      then the method tabpane.getBoundsAt(index) does not return the correct bounds of the tab. I've found out that the rect.y is always the negative value of the correct one.
      The other symptom of probably the same defect is that ^Vtabpane.getUI().tabForCoordinate(tabpane, x, y) always return null.

      This is a significant problem for Forte for Java because we need this piece of Swind code to work correctly to be able to implement important feature in our IDE.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: