|
|
@ -802,7 +802,12 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo |
|
|
|
try { |
|
|
|
try { |
|
|
|
popup.setLocation(designer.getLocationOnScreen().x + designer.getPaintX() + extraX, designer.getLocationOnScreen().y + designer.getPaintY() + extraY); |
|
|
|
popup.setLocation(designer.getLocationOnScreen().x + designer.getPaintX() + extraX, designer.getLocationOnScreen().y + designer.getPaintY() + extraY); |
|
|
|
popup.updatePane(designer); |
|
|
|
popup.updatePane(designer); |
|
|
|
popup.setVisible(selected && accept && popup.hasVisibleButtons() && popup.isCanVisible() && !isShowPluginDialog()); |
|
|
|
boolean needShowing = selected && accept && popup.hasVisibleButtons() && popup.isCanVisible() && !isShowPluginDialog(); |
|
|
|
|
|
|
|
if (!popup.isVisible() && needShowing) { |
|
|
|
|
|
|
|
popup.setVisible(true); |
|
|
|
|
|
|
|
} else if (!needShowing) { |
|
|
|
|
|
|
|
popup.setVisible(false); |
|
|
|
|
|
|
|
} |
|
|
|
popup.setRelativeBounds(bounds); |
|
|
|
popup.setRelativeBounds(bounds); |
|
|
|
} catch (Exception ignored) { |
|
|
|
} catch (Exception ignored) { |
|
|
|
} |
|
|
|
} |
|
|
|