Browse Source

REPORT-102440 fix:清除公式内容后不显示"$$$"

release/11.0
Carlson 1 year ago
parent
commit
dc8285cb29
  1. 14
      designer-base/src/main/java/com/fr/design/formula/TinyFormulaPane.java

14
designer-base/src/main/java/com/fr/design/formula/TinyFormulaPane.java

@ -11,9 +11,11 @@ import com.fr.design.gui.itextfield.UITextField;
import com.fr.design.layout.TableLayout; import com.fr.design.layout.TableLayout;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
import javax.swing.BorderFactory;
import javax.swing.*; import javax.swing.JPanel;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
@ -63,11 +65,7 @@ public class TinyFormulaPane extends BasicBeanPane<String> implements UIObserver
} }
protected void populateTextField(BaseFormula fm) { protected void populateTextField(BaseFormula fm) {
if (fm.getContent().length() <= 1) { formulaTextField.setText(fm.getContent());
formulaTextField.setText("$$$");
} else {
formulaTextField.setText(fm.getContent());
}
} }
protected void initLayout() { protected void initLayout() {

Loading…
Cancel
Save