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.

Bug 36183

Summary: Need a way to get position of control buttons in editor's tab control
Product: platform Reporter: Jiri Skrivanek <jskrivanek>
Component: Window SystemAssignee: David Simonek <dsimonek>
Status: VERIFIED FIXED    
Severity: blocker Keywords: T9Y
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample code.
modified test which uses newly introduced methods

Description Jiri Skrivanek 2003-09-18 13:31:19 UTC
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.
Comment 1 Jiri Skrivanek 2003-09-18 13:32:26 UTC
Created attachment 11658 [details]
Sample code.
Comment 2 David Simonek 2003-10-17 14:08:12 UTC
date p[ostponed to the end of october. If this is problem please let
me know.
Comment 3 _ ttran 2003-10-18 10:02:52 UTC
changed date to 2003-10-30 to make this item appear before the final
merge in the list ;-)
Comment 4 Jiri Skrivanek 2003-11-07 13:14:20 UTC
Probably not enough time to fix it before merge. Please, look at it
some day before FCS.
Comment 5 David Simonek 2003-11-24 16:59:56 UTC
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.
Comment 6 David Simonek 2003-11-24 17:01:24 UTC
Created attachment 12277 [details]
modified test which uses newly introduced methods
Comment 7 Jiri Skrivanek 2004-01-16 11:09:11 UTC
Verified.