Browse Source

Pull request #2170: REPORT-37968 设计器修改单元格属性时会顺带修改下一个点击的单元格

Merge in DESIGN/design from ~HADES/design:bugfix/10.0 to bugfix/10.0

* commit 'cf4fb7cd2632587147baa4b5ce713070f2011f99':
  REPORT-37968 设计器修改单元格属性时会顺带修改下一个点击的单元格
bugfix/10.0
Hades 4 years ago
parent
commit
4bfa72888a
  1. 8
      designer-base/src/main/java/com/fr/design/gui/columnrow/ColumnRowPane.java

8
designer-base/src/main/java/com/fr/design/gui/columnrow/ColumnRowPane.java

@ -200,13 +200,17 @@ public class ColumnRowPane extends JPanel implements UIObserver {
column = 0;
}
removeDocumentListener(d);
columnSpinner.setValue(StableUtils.convertIntToABC(column + 1));
String colValue = StableUtils.convertIntToABC(column + 1);
columnSpinner.setValue(colValue);
((DefaultEditor) columnSpinner.getEditor()).getTextField().setText(colValue);
int row = columnRow.getRow();
// shoc 小于0就蹦了
if (row < 0) {
row = 0;
}
rowSpinner.setValue("" + (row + 1));
String rowValue = Integer.toString(row + 1);
rowSpinner.setValue(rowValue);
((DefaultEditor) rowSpinner.getEditor()).getTextField().setText(rowValue);
addDocumentListener(d);
fireChanged();
}

Loading…
Cancel
Save