Browse Source

REPORT-24098 稳定共创:设计器一打开模板就触发保存操作,未做任何修改

final/10.0
hades 5 years ago
parent
commit
c6807c1291
  1. 13
      designer-base/src/main/java/com/fr/design/gui/icombocheckbox/UIComboCheckBox.java

13
designer-base/src/main/java/com/fr/design/gui/icombocheckbox/UIComboCheckBox.java

@ -132,8 +132,17 @@ public class UIComboCheckBox extends JComponent implements UIObserver, GlobalNam
} }
private UITextField createEditor() { private UITextField createEditor() {
UITextField editor = new UITextField(); UITextField editor = new UITextField() {
editor.setEditable(false); @Override
protected void initListener() {
this.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
attributeChange();
}
});
}
}; editor.setEditable(false);
editor.setPreferredSize(new Dimension(110, 20)); editor.setPreferredSize(new Dimension(110, 20));
addPopupListener(editor); addPopupListener(editor);

Loading…
Cancel
Save