|
|
@ -163,6 +163,7 @@ public class EnvDetectorDialog extends JDialog { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
detectButton.setForeground(Color.WHITE); |
|
|
|
detectButton.setForeground(Color.WHITE); |
|
|
|
|
|
|
|
detectButton.setToolTipText(buttonStatus.getDesc()); |
|
|
|
detectButton.addActionListener(event -> { |
|
|
|
detectButton.addActionListener(event -> { |
|
|
|
if (buttonStatus.isNotExecuting()) { |
|
|
|
if (buttonStatus.isNotExecuting()) { |
|
|
|
startDetecting(); |
|
|
|
startDetecting(); |
|
|
@ -284,6 +285,7 @@ public class EnvDetectorDialog extends JDialog { |
|
|
|
UIUtil.invokeLaterIfNeeded(() -> { |
|
|
|
UIUtil.invokeLaterIfNeeded(() -> { |
|
|
|
// 刷新按钮
|
|
|
|
// 刷新按钮
|
|
|
|
detectButton.setText(buttonStatus.getDesc()); |
|
|
|
detectButton.setText(buttonStatus.getDesc()); |
|
|
|
|
|
|
|
detectButton.setToolTipText(detectButton.getText()); |
|
|
|
// 刷新面板
|
|
|
|
// 刷新面板
|
|
|
|
refreshBody(); |
|
|
|
refreshBody(); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -293,6 +295,7 @@ public class EnvDetectorDialog extends JDialog { |
|
|
|
|
|
|
|
|
|
|
|
// 刷新按钮
|
|
|
|
// 刷新按钮
|
|
|
|
detectButton.setText(buttonStatus.getDesc()); |
|
|
|
detectButton.setText(buttonStatus.getDesc()); |
|
|
|
|
|
|
|
detectButton.setToolTipText(detectButton.getText()); |
|
|
|
if (buttonStatus == EnvDetectorButtonStatus.A_NEW) { |
|
|
|
if (buttonStatus == EnvDetectorButtonStatus.A_NEW) { |
|
|
|
this.resultSummaryPane = new JPanel(); |
|
|
|
this.resultSummaryPane = new JPanel(); |
|
|
|
this.resultSummaryPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0)); |
|
|
|
this.resultSummaryPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0)); |
|
|
@ -358,6 +361,7 @@ public class EnvDetectorDialog extends JDialog { |
|
|
|
} |
|
|
|
} |
|
|
|
EnvDetectorItem item = items.get(i); |
|
|
|
EnvDetectorItem item = items.get(i); |
|
|
|
tablePanel.updateCell(row, 2, new UILabel(item.getDescription())); |
|
|
|
tablePanel.updateCell(row, 2, new UILabel(item.getDescription())); |
|
|
|
|
|
|
|
tablePanel.updateCellToolTip(row, 2, item.getDescription()); |
|
|
|
DetectorResult result = item.getResult(); |
|
|
|
DetectorResult result = item.getResult(); |
|
|
|
|
|
|
|
|
|
|
|
int detectRow = currentDetectIndex + 1; |
|
|
|
int detectRow = currentDetectIndex + 1; |
|
|
|