josmas / openwonderland

Automatically exported from code.google.com/p/openwonderland
GNU General Public License v2.0
3 stars 5 forks source link

Swing DesktopPane and JInternalFrame problem #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a swing 2d app containing a JDesktopPane
2. Add a JInternalFrame to the desktop pane
3. Try dragging the internal frame around the desktop pane

What is the expected output? 
Usual dragging behaviour of internalframe and desktoppane

What do you see instead?
Problem with dragging due to incorrect assumption in mouselistener as part of 
internal frame regarding swing widget parentage. Also mouse droppings from 
dragging internal frame to left and upwards.

Fix requires changes to componentUI that is part of internalframe, which is 
only possible when using metal LAF, and not Nimus. See attached patch that 
introduces boolean client property GUIUtils.useNimbus.

Off-by-one error on repainting also fixed in attached patch.

More details on the forum at:
http://groups.google.com/group/openwonderland/browse_thread/thread/567dfc8605303
21a/c260dfa93e83a048#c260dfa93e83a048

Original issue reported on code.google.com by bernho...@gmail.com on 29 Nov 2011 at 10:28

Attachments:

GoogleCodeExporter commented 9 years ago
Please review the appbase-module.diff patch.

Original comment by bernho...@gmail.com on 31 Jan 2012 at 2:48

GoogleCodeExporter commented 9 years ago
Thanks for the reminder.  appbase-module.diff is approved -- please update the 
copyright header before committing.  

Just to double check, wonderland-core.diff is no longer needed, correct?

Original comment by jonathan...@gmail.com on 31 Jan 2012 at 4:48

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r4799.

Original comment by bernho...@gmail.com on 2 Feb 2012 at 10:30

GoogleCodeExporter commented 9 years ago
wonderland-core.diff is no longer needed.

Original comment by bernho...@gmail.com on 2 Feb 2012 at 10:31