|
|
|
@ -321,7 +321,7 @@ public final class GUICoreUtils {
|
|
|
|
|
// getGraphicsConfiguration().getBounds()能获取多个屏时 设计器主体界面所在屏的大小和对应的坐标
|
|
|
|
|
Rectangle rectangle; |
|
|
|
|
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) { |
|
|
|
|
rectangle = DesignerContext.getDesignerFrame().getGraphicsConfiguration().getBounds(); |
|
|
|
|
} else { |
|
|
|
|