|
|
@ -2,6 +2,7 @@ package com.fr.design.notification.ui; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.notification.Notification; |
|
|
|
import com.fr.design.notification.Notification; |
|
|
|
import com.fr.design.notification.NotificationCenter; |
|
|
|
import com.fr.design.notification.NotificationCenter; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
@ -119,7 +120,7 @@ public class NotificationCenterDialog extends JDialog { |
|
|
|
if (winSize.width > screenSize.width) { |
|
|
|
if (winSize.width > screenSize.width) { |
|
|
|
winSize.width = screenSize.width; |
|
|
|
winSize.width = screenSize.width; |
|
|
|
} |
|
|
|
} |
|
|
|
//这里设置位置:水平居中,竖直偏上
|
|
|
|
win.setLocation((DesignerContext.getDesignerFrame().getWidth() - winSize.width - 100 + DesignerContext.getDesignerFrame().getX()), |
|
|
|
win.setLocation(screenSize.width - winSize.width - 90, 50); |
|
|
|
DesignerContext.getDesignerFrame().getY() + winSize.height); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|