Browse Source

CHART-15451 增加无匹配的提示

final/10.0
白岳 4 years ago
parent
commit
28188b2ce8
  1. 6
      designer-chart/src/main/java/com/fr/design/chart/AutoChartTypePane.java

6
designer-chart/src/main/java/com/fr/design/chart/AutoChartTypePane.java

@ -63,6 +63,9 @@ public class AutoChartTypePane extends ChartWizardPane implements CallbackEvent
private AutoProgressBar connectionBar; private AutoProgressBar connectionBar;
private SwingWorker worker; private SwingWorker worker;
//暂时不做国际化
private static final String MESSAGE = "当前数据没有匹配到合适的图表,请调整数据后再次尝试。";
public AutoChartTypePane() { public AutoChartTypePane() {
this.setLayout(FRGUIPaneFactory.createBorderLayout()); this.setLayout(FRGUIPaneFactory.createBorderLayout());
initButtonGroup(); initButtonGroup();
@ -226,6 +229,9 @@ public class AutoChartTypePane extends ChartWizardPane implements CallbackEvent
chartResultModel.addElement(autoChartIcon); chartResultModel.addElement(autoChartIcon);
} }
chartViewList.setSelectedIndex(0); chartViewList.setSelectedIndex(0);
} else {
FineJOptionPane.showMessageDialog(AutoChartTypePane.this, MESSAGE,
Toolkit.i18nText("Fine-Design_Basic_Message"), JOptionPane.INFORMATION_MESSAGE, UIManager.getIcon("OptionPane.informationIcon"));
} }
} catch (Exception e) { } catch (Exception e) {
if (!(e instanceof CancellationException)) { if (!(e instanceof CancellationException)) {

Loading…
Cancel
Save