Browse Source

漏提交

master
zack 7 years ago
parent
commit
a4767e2c42
  1. 10
      designer-base/src/com/fr/design/file/HistoryTemplateListPane.java
  2. 4
      designer-base/src/com/fr/design/gui/iprogressbar/ProgressDialog.java
  3. 22
      designer-base/src/com/fr/design/mainframe/loghandler/LogMessageBar.java

10
designer-base/src/com/fr/design/file/HistoryTemplateListPane.java

@ -43,18 +43,22 @@ public class HistoryTemplateListPane extends JPanel implements FileOperations, C
private JTemplate<?, ?> editingTemplate; private JTemplate<?, ?> editingTemplate;
private FileToolbarStateChangeListener toobarStateChangeListener; private FileToolbarStateChangeListener toobarStateChangeListener;
private static HistoryTemplateListPane THIS; private static volatile HistoryTemplateListPane THIS;
private UIList list; private UIList list;
public static final HistoryTemplateListPane getInstance() { public static final HistoryTemplateListPane getInstance() {
if (THIS == null) { if (THIS == null) {
THIS = new HistoryTemplateListPane(); synchronized (HistoryTemplateListPane.class) {
if (THIS == null) {
THIS = new HistoryTemplateListPane();
}
}
} }
return THIS; return THIS;
} }
public HistoryTemplateListPane() { private HistoryTemplateListPane() {
setLayout(new BorderLayout()); setLayout(new BorderLayout());
historyList = new ArrayList<JTemplate<?, ?>>(); historyList = new ArrayList<JTemplate<?, ?>>();
list = new UIList(new HistoryListDataMode()) { list = new UIList(new HistoryListDataMode()) {

4
designer-base/src/com/fr/design/gui/iprogressbar/ProgressDialog.java

@ -52,6 +52,7 @@ public class ProgressDialog extends UIDialog {
FRFont font = FRFont.getInstance().applySize(14).applyForeground(new ColorUIResource(333334)); FRFont font = FRFont.getInstance().applySize(14).applyForeground(new ColorUIResource(333334));
text.setFont(font); text.setFont(font);
panel.add(text, BorderLayout.SOUTH); panel.add(text, BorderLayout.SOUTH);
panel.setVisible(true);
centerDialog.getContentPane().add(panel); centerDialog.getContentPane().add(panel);
} }
@ -63,9 +64,8 @@ public class ProgressDialog extends UIDialog {
@Override @Override
public void setVisible(boolean b) { public void setVisible(boolean b) {
super.setVisible(b);
centerDialog.setVisible(b); centerDialog.setVisible(b);
centerDialog.setResizable(false); super.setVisible(b);
} }
public void setProgressValue(int value) { public void setProgressValue(int value) {

22
designer-base/src/com/fr/design/mainframe/loghandler/LogMessageBar.java

@ -1,27 +1,29 @@
package com.fr.design.mainframe.loghandler; package com.fr.design.mainframe.loghandler;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JFrame;
import com.fr.design.constants.UIConstants; import com.fr.design.constants.UIConstants;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.general.Inter; import com.fr.general.Inter;
import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class LogMessageBar extends JPanel { public class LogMessageBar extends JPanel {
private UILabel messageLabel; private UILabel messageLabel;
private int width = 600; private int width = 600;
public static LogMessageBar THIS; public static volatile LogMessageBar THIS;
private JFrame dlg = new LogDetailPane().showDialog(); private JFrame dlg = new LogDetailPane().showDialog();
public static LogMessageBar getInstance() { public static LogMessageBar getInstance() {
if (THIS == null) { if (THIS == null) {
THIS = new LogMessageBar(); synchronized (LogMessageBar.class) {
if (THIS == null) {
THIS = new LogMessageBar();
}
}
} }
return THIS; return THIS;
} }
@ -32,7 +34,7 @@ public class LogMessageBar extends JPanel {
return bar; return bar;
} }
public LogMessageBar() { private LogMessageBar() {
messageLabel = new UILabel(); messageLabel = new UILabel();
setLayout(new BorderLayout()); setLayout(new BorderLayout());
add(messageLabel, BorderLayout.CENTER); add(messageLabel, BorderLayout.CENTER);

Loading…
Cancel
Save