Browse Source

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

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

12
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.mainframe.DesignerContext;
import javax.swing.*;
import java.awt.*;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@ -63,12 +65,8 @@ public class TinyFormulaPane extends BasicBeanPane<String> implements UIObserver
}
protected void populateTextField(BaseFormula fm) {
if (fm.getContent().length() <= 1) {
formulaTextField.setText("$$$");
} else {
formulaTextField.setText(fm.getContent());
}
}
protected void initLayout() {
double p = TableLayout.PREFERRED;

Loading…
Cancel
Save