/** Creates new NameAndLocationPanel */
public NameAndLocationPanel(final WizardDescriptor setting, final NewLoaderIterator.DataModel data) {
super(setting);
this.data = data;
initComponents();
initAccessibility();
putClientProperty("NewFileWizard_Title", getMessage("LBL_LoaderWizardTitle"));
DocumentListener dListener = new UIUtil.DocumentAdapter() {
@Override
public void insertUpdate(DocumentEvent e) {
if (checkValidity()) {
updateData();
}
}
};
txtPrefix.getDocument().addDocumentListener(dListener);
txtIcon.getDocument().addDocumentListener(dListener);
if (comPackageName.getEditor().getEditorComponent() instanceof JTextField) {
JTextField txt = (JTextField)comPackageName.getEditor().getEditorComponent();
txt.getDocument().addDocumentListener(dListener);
}
if (data.canUseMultiview()) {
useMultiView.setEnabled(true);
useMultiView.setSelected(true);
} else {
useMultiView.setEnabled(false);
useMultiView.setSelected(false);
}
}
NameAndLocationPanel.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:incubator-netbeans
作者:
评论列表
文章目录