JDK-6459825 : TextArea popupMenu is visible when right clicked on the intersection area of scrollbar
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2006-08-14
  • Updated: 2019-12-17
  • Resolved: 2019-12-17
Related Reports
Relates :  
Relates :  
Description
Expected Result:-
-----------------
1)popup menu not should be displayed when right clicked on the textarea scrollbar intersection point.

Actual Result:-
----------------
1) Popup menu is displayed when right clicked on the textarea scrollbar intersection point.

Step to Reproduce:-
-------------------
1) Run the attached program. 
2) Click on the "Click Me" button. You can see that menubar is disappeared.
3) Right click on the textarea . you can see the popupmenu. Select any menuitem. This will fire the action.
4) Right click on the textarea scrollbar intersection point, you can see popup menu is visible & selecting the menuitem fire the action.

I tested this with the native application gedit & the popupmenu is not visible. In windows this works fine i,e popupmenu is not displayed.

I tested this in mustang b95 & Tiger FCS b64 & the bug is reproducable.

Comments
EVALUATION I launched the test several times with different toolkits (XToolkit and MToolkit) and it seems that showing a popup menu for scrollbars intersection is correct, at least Motif behaves the same way. However, I have also noticed that the popup menu is shown even if mouse is clicked on the text area scrollbars, which is not correct and should be fixed.
15-08-2006

EVALUATION The bug is related to bug #6431076. We should check the mouse pointer position more carefully in different cases.
14-08-2006