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 - Need a way to get position of control buttons in editor's tab control
Summary: Need a way to get position of control buttons in editor's tab control
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2003-09-18 13:31 UTC by Jiri Skrivanek
Modified: 2008-12-22 17:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample code. (2.80 KB, text/plain)
2003-09-18 13:32 UTC, Jiri Skrivanek
Details
modified test which uses newly introduced methods (2.37 KB, patch)
2003-11-24 17:01 UTC, David Simonek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.