TWords in title bar can be dragged now

This commit is contained in:
huangyuhui
2016-05-11 13:42:46 +08:00
parent 75c4a24cbd
commit 2862e3a6ee

View File

@@ -214,7 +214,6 @@ public final class MainFrame extends DraggableFrame {
windowTitle = new JLabel(defaultTitle); windowTitle = new JLabel(defaultTitle);
windowTitle.setForeground(BasicColors.COLOR_WHITE_TEXT); windowTitle.setForeground(BasicColors.COLOR_WHITE_TEXT);
windowTitle.addMouseListener(MouseListenerImpl.INSTANCE);
header.add(windowTitle); header.add(windowTitle);
header.add(Box.createHorizontalGlue()); header.add(Box.createHorizontalGlue());
header.add(rightHeaderPanel); header.add(rightHeaderPanel);
@@ -420,6 +419,7 @@ public final class MainFrame extends DraggableFrame {
public void invokeUpdate() { public void invokeUpdate() {
defaultTitle = Main.makeTitle() + C.i18n("update.found"); defaultTitle = Main.makeTitle() + C.i18n("update.found");
windowTitle.addMouseListener(MouseListenerImpl.INSTANCE);
if (!isShowedMessage) { if (!isShowedMessage) {
windowTitle.setText(defaultTitle); windowTitle.setText(defaultTitle);
windowTitle.setForeground(Color.red); windowTitle.setForeground(Color.red);