Browse Source

REPORT-53873 设计器用户登录策略调整-消息提醒-消息提醒框弹出位置

zheng-1641779399395
pengda 3 years ago
parent
commit
cfcdb21c80
  1. 6
      designer-base/src/main/java/com/fr/design/dialog/NotificationDialog.java

6
designer-base/src/main/java/com/fr/design/dialog/NotificationDialog.java

@ -42,9 +42,6 @@ public class NotificationDialog extends JDialog {
public NotificationDialog(Frame owner, String title, boolean isModal, int messageType, String message, NotificationDialogAction action) {
super(owner);
setFocusable(false);
setAutoRequestFocus(false);
setResizable(false);
setTitle(title);
initComponents(messageType, message, isModal, action);
}
@ -59,6 +56,9 @@ public class NotificationDialog extends JDialog {
NotificationCenter.getInstance().addNotification(new Notification(messageType, message, action));
notificationDialogAction = action;
setModal(isModal);
setFocusable(false);
setAutoRequestFocus(false);
setResizable(false);
JPanel body = FRGUIPaneFactory.createBorderLayout_L_Pane();
body.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));

Loading…
Cancel
Save