Browse Source

无 JIRA 任务,补充注释

feature/x
Harrison 2 years ago
parent
commit
f6cf059be1
  1. 8
      designer-base/src/main/java/com/fr/design/components/notification/NotificationDialog.java

8
designer-base/src/main/java/com/fr/design/components/notification/NotificationDialog.java

@ -61,8 +61,13 @@ public class NotificationDialog extends JDialog {
private static final Dimension CONTENT_SIZE = new Dimension(CONTENT_WIDTH, CONTENT_HEIGHT);
private static final Dimension BUTTON_DIMENSION = new Dimension(68, 20);
/**
* 标记 LABEL 没有作用
*/
private static final UILabel SIGN_LABEL = new UILabel("#");
/**
* 确认一个 LABEL 的宽高
*/
private static final Dimension SIGN_LABEL_DIMENSION = SIGN_LABEL.getPreferredSize();
private NotificationDialogProperties properties;
@ -187,7 +192,6 @@ public class NotificationDialog extends JDialog {
messageComponents = messageComponents.stream()
.peek((component) -> {
int size = component.getFont().getSize();
Dimension preferredSize = component.getPreferredSize();
double componentWidth = preferredSize.getWidth();
double componentHeight = preferredSize.getHeight();

Loading…
Cancel
Save