From f6cf059be1768012a407c0b40f051b711bcd5af2 Mon Sep 17 00:00:00 2001 From: Harrison Date: Fri, 10 Jun 2022 18:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=20JIRA=20=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/notification/NotificationDialog.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/components/notification/NotificationDialog.java b/designer-base/src/main/java/com/fr/design/components/notification/NotificationDialog.java index 4df430b06..4be51f1a1 100644 --- a/designer-base/src/main/java/com/fr/design/components/notification/NotificationDialog.java +++ b/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();