private void mouseUp(MouseEvent e = null) { mousePressed = false; mouseReleasedCount = frameCount; // this is how you bypass security restrictions on method calls that require a MouseEvent to validate if (UIManager.mousePressedCallback != null) { UIManager.mousePressedCallback(); UIManager.mousePressedCallback = null; } }
public static void closeDialog() { dialog = null; }