-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
hopper
-
generic, x86
-
generic, linux
On jdk1.4.
Create app (see attachment) with JTabbedPane.
Set its tabPlacement to BOTTOM.
Change its tab layout policy between WRAP and SCROLL. The tabs should be only in one row so they look same in both tab layouts.
Try to get bounds of one tab under WRAP and SCROLL layout policies. The bounds ashould be same but aren't.
I guess there is a bug when translating those coordinates when SCROLL_TAB_LAYOUT pane is set. It works fine when default tab placement (UPPER) is set.
=================================
###@###.### 2002-08-12
Unfortunatelly the fix still doesn't work. I tried the jdk1.4.1_b18 (linux). Have a look at the slighlty modified test case (attachment T_1.java). If you run it with the TOP or LEFT tab placement you get the index of the tabs when clicking on them, otherwise you get always -1 (i.e. for BOTTOM and RIGHT tab placement).
Note: There is used AWTEvent listener due to the problem of mouse listening on the tabs when scroll layout is set -> but this describes bug #4620537.
Create app (see attachment) with JTabbedPane.
Set its tabPlacement to BOTTOM.
Change its tab layout policy between WRAP and SCROLL. The tabs should be only in one row so they look same in both tab layouts.
Try to get bounds of one tab under WRAP and SCROLL layout policies. The bounds ashould be same but aren't.
I guess there is a bug when translating those coordinates when SCROLL_TAB_LAYOUT pane is set. It works fine when default tab placement (UPPER) is set.
=================================
###@###.### 2002-08-12
Unfortunatelly the fix still doesn't work. I tried the jdk1.4.1_b18 (linux). Have a look at the slighlty modified test case (attachment T_1.java). If you run it with the TOP or LEFT tab placement you get the index of the tabs when clicking on them, otherwise you get always -1 (i.e. for BOTTOM and RIGHT tab placement).
Note: There is used AWTEvent listener due to the problem of mouse listening on the tabs when scroll layout is set -> but this describes bug #4620537.
- duplicates
-
JDK-4668861 JTabbedPane.getBoundsAt() returns incorrect value in SCROLL_TAB_LAYOUT mode
-
- Closed
-