DevCharly opened a new pull request, #6142:
URL: https://github.com/apache/netbeans/pull/6142

   When doing drag-and-drop in tree, tree-table or palette, then the insert 
indicator lines are painted at wrong location in NB 18 on Windows 10/11 with 
FlatLaf.
   
   
![image](https://github.com/apache/netbeans/assets/5604048/552df012-3101-4e62-a3cb-d994846862ab)
   
   (red arrow indicates the correct location where the dnd lines should be 
painted)
   
   The reason for this problem is that since FlatLaf 3.1 (since NB 18), glass 
panes are not located at location `0,0` in root pane (if FlatLaf window 
decorations are enabled). But NetBeans code converts locations to root pane 
coordinates and uses them to paint on glass pane, which is not located at `0,0` 
in root pane.
   
   This PR fixes the problem for TreeView, OutlineView (e.g. used in "Search 
Result" view) and palette.
   
   I've searched the NB source code for `getRootPane`, `convertPoint` and 
`convertRectangle` and checked results whether coordinate conversion is used 
for glass panes. Found only the 3 files fixed in this PR.
   
   Fixes #6134
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to