|
|
@ -57,8 +57,6 @@ import javax.swing.KeyStroke; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.SwingWorker; |
|
|
|
import javax.swing.SwingWorker; |
|
|
|
import javax.swing.Timer; |
|
|
|
import javax.swing.Timer; |
|
|
|
import javax.swing.event.ListSelectionEvent; |
|
|
|
|
|
|
|
import javax.swing.event.ListSelectionListener; |
|
|
|
|
|
|
|
import java.awt.AWTEvent; |
|
|
|
import java.awt.AWTEvent; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
@ -242,21 +240,28 @@ public class AlphaFineDialog extends UIDialog { |
|
|
|
if (hotData == null) { |
|
|
|
if (hotData == null) { |
|
|
|
hotData = HotIssuesManager.getInstance().getHotIssues(); |
|
|
|
hotData = HotIssuesManager.getInstance().getHotIssues(); |
|
|
|
} |
|
|
|
} |
|
|
|
for (int i = 0; i < hotData.length; i++) { |
|
|
|
|
|
|
|
panel.add(new HotIssueJpanel(hotData[i], i + 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
hotData = null; |
|
|
|
hotData = null; |
|
|
|
for (int i = 0; i < AlphaFineConstants.HOT_ITEMS; i++) { |
|
|
|
|
|
|
|
panel.add(new HotIssueJpanel(new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Connection_Failed")}, i + 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
initHotPane(panel, hotData); |
|
|
|
hotPane.add(uiLabel, BorderLayout.NORTH); |
|
|
|
hotPane.add(uiLabel, BorderLayout.NORTH); |
|
|
|
hotPane.add(panel, BorderLayout.CENTER); |
|
|
|
hotPane.add(panel, BorderLayout.CENTER); |
|
|
|
add(hotPane, BorderLayout.SOUTH); |
|
|
|
add(hotPane, BorderLayout.SOUTH); |
|
|
|
setSize(AlphaFineConstants.FULL_SIZE); |
|
|
|
setSize(AlphaFineConstants.FULL_SIZE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initHotPane(JPanel panel, String[][] hotData) { |
|
|
|
|
|
|
|
if (hotData == null) { |
|
|
|
|
|
|
|
for (int i = 0; i < AlphaFineConstants.HOT_ITEMS; i++) { |
|
|
|
|
|
|
|
panel.add(new HotIssueJpanel(new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Connection_Failed")}, i + 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
for (int i = 0; i < hotData.length; i++) { |
|
|
|
|
|
|
|
panel.add(new HotIssueJpanel(hotData[i], i + 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 初始化输入框 |
|
|
|
* 初始化输入框 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|