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.
To determine a point where to click to invoke context menu on a tab I call TabLayoutModel.getX(index), getY(), getH(), getW() methods. I found out that they return wrong values. For example for 3 tabs in explorer mode they return intersecting rectangles. Try to have 3 TC in explorer mode and run attached code. The result can be as follows: java.awt.Rectangle[x=0,y=0,width=118,height=21] java.awt.Rectangle[x=118,y=0,width=118,height=21] java.awt.Rectangle[x=235,y=0,width=117,height=21] You can see that x coordinates of rectangle are intersecting (0-117, 118-235, 235-353). You can see the problem when you move the mouse over tabs. The next tab is highlighted already when the mouse is on previous tab. It also can cause problems in automated tests.
Created attachment 11663 [details] Test case to see tabs coordinates.
date p[ostponed to the end of october. If this is problem please let me know.
moved to FCS list (not enough time), fortunately not needed before merge from the end user side, I hope automated tests side could wait as well. Thx.
It will be fixed after merge, so it cannot block issue 36145.
fixed in main trunk. /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/ViewTabLayoutModel.java,v new revision: 1.3; previous revision: 1.2
*** Issue 36182 has been marked as a duplicate of this issue. ***
Verified.