private void loadConnectionProps(Properties props) {
if (props != null) {
for (Object key : props.keySet()) {
String propsKey = (String) key;
if (components.containsKey(propsKey)) {
JComponent component = components.get(propsKey);
String value = props.getProperty(propsKey);
if (component instanceof JTextField) {
((JTextField) component).setText(value);
} else if (component instanceof JComboBox) {
((JComboBox) component).setSelectedItem(value);
}
}
}
}
}
ZooInspectorConnectionPropertiesDialog.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:https-github.com-apache-zookeeper
作者:
评论列表
文章目录