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() {
UITextField editor = new UITextField();
editor.setEditable(false);
UITextField editor = new UITextField() {
@Override
protected void initListener() {
this.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
attributeChange();
}
});
}
}; editor.setEditable(false);
editor.setPreferredSize(new Dimension(110, 20));
addPopupListener(editor);

Loading…
Cancel
Save