Browse Source

REPORT-62539 不触发事件了,直接改可见性

bugfix/11.0
xiqiu 3 years ago
parent
commit
0d0f152fd3
  1. 3
      designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

3
designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

@ -119,11 +119,10 @@ public class JDBCDefPane extends JPanel {
driverManageLabel.setVisible(selectSelfDefine); driverManageLabel.setVisible(selectSelfDefine);
driverLoaderBox.setVisible(selectSelfDefine); driverLoaderBox.setVisible(selectSelfDefine);
driverComboBox.setVisible(!selectSelfDefine); driverComboBox.setVisible(!selectSelfDefine);
// 选中自定义的话,将odbc的屏蔽,选中默认的话,重新触发一次driverComboBox的事件
if (selectSelfDefine) { if (selectSelfDefine) {
odbcTipsLink.setVisible(false); odbcTipsLink.setVisible(false);
} else { } else {
driverComboBox.setSelectedItem(driverComboBox.getSelectedItem()); odbcTipsLink.setVisible(ComparatorUtils.equals("sun.jdbc.odbc.JdbcOdbcDriver", driverComboBox.getSelectedItem()));
} }
} }
}; };

Loading…
Cancel
Save