[SWINGX-1128] WindowUtils.getPointForCentering() does not recognize multi-monitors Created: 17/Jul/09  Updated: 04/Mar/11  Resolved: 04/Mar/11

Status: Resolved
Project: swingx
Component/s: Util
Affects Version/s: 1.0
Fix Version/s: 1.6.3

Type: Bug Priority: Major
Reporter: orbisman Assignee: Karl Schaefer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Issuezilla Id: 1,128


Latest change in SWINGX-1079 breaks my code when passing in the top JFrame on a
multi-monitor system.

After reviewing the code if you change the following in the
getUsableDeviceBounds() function...

Window owner = window.getOwner();


Component owner = SwingUtilities.getRoot((Component)window);

the code works for me.

Comment by Karl Schaefer [ 04/Mar/11 ]

SWINGX-1128: Unowned windows always center on their current graphics configuration. Owned windows center on their parents graphics configuration unless it is already showing, in which case they center on their current graphics configuration.


Committed revision 3945.

Generated at Sun Jan 22 10:46:18 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.