This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For automated UI tests it is necesary to be able to get position of control/arrow buttons in editor's tab control. For left corner arrow button method ScrollableTabsUI.arrowButtonRect called by reflection returns corect rectangle (see attached code sample). But for right corner control buttons method ScrollableTabsUI.controlButtonRect() returns wrong coordinates, event out of container border. How should I use it then? Maybe it would be better if there exist some public methods which return coordinates of control buttons.
Created attachment 11658 [details] Sample code.
date p[ostponed to the end of october. If this is problem please let me know.
changed date to 2003-10-30 to make this item appear before the final merge in the list ;-)
Probably not enough time to fix it before merge. Please, look at it some day before FCS.
Impolemented in main trunk. core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/ScrollableTabsUI.java new revision: 1.6; previous revision: 1.5 Note that left arrow rect still can return a bit misleading bounds, I recommend to compute and use center of the rectangle for testing purposes.
Created attachment 12277 [details] modified test which uses newly introduced methods
Verified.