|
|
@ -321,7 +321,7 @@ public final class GUICoreUtils { |
|
|
|
// getGraphicsConfiguration().getBounds()能获取多个屏时 设计器主体界面所在屏的大小和对应的坐标
|
|
|
|
// getGraphicsConfiguration().getBounds()能获取多个屏时 设计器主体界面所在屏的大小和对应的坐标
|
|
|
|
Rectangle rectangle; |
|
|
|
Rectangle rectangle; |
|
|
|
Container parent = win.getParent(); |
|
|
|
Container parent = win.getParent(); |
|
|
|
boolean displayByDesignerFrame = (DesignerContext.getDesignerFrame() != null && parent == null) || (parent != null && !parent.isVisible()); |
|
|
|
boolean displayByDesignerFrame = (DesignerContext.getDesignerFrame() != null && parent == null) || (parent != null && !parent.isVisible() && DesignerContext.getDesignerFrame() != null); |
|
|
|
if (displayByDesignerFrame) { |
|
|
|
if (displayByDesignerFrame) { |
|
|
|
rectangle = DesignerContext.getDesignerFrame().getGraphicsConfiguration().getBounds(); |
|
|
|
rectangle = DesignerContext.getDesignerFrame().getGraphicsConfiguration().getBounds(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|