-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
None
-
x86
-
linux
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.
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.
- duplicates
-
JDK-4620540 When JTabbedPane set BOTTOM placement, are wrong tab bounds under SCROLL_TAB_LAY
-
- Resolved
-