Browse Source

REPORT-70452 fix 绘制空border && 清空按钮展示逻辑调整

feature/x
hades 3 years ago
parent
commit
a1d545252b
  1. 5
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java

5
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineTextField.java

@ -40,6 +40,11 @@ public class AlphaFineTextField extends UITextField {
g2.drawString(placeHolder, getInsets().left, g.getFontMetrics().getMaxAscent() + getInsets().top + PLACE_HOLDER_GAP); g2.drawString(placeHolder, getInsets().left, g.getFontMetrics().getMaxAscent() + getInsets().top + PLACE_HOLDER_GAP);
} }
@Override
protected void paintBorder(Graphics g) {
// do nothing
}
public String getPlaceHolder() { public String getPlaceHolder() {
return placeHolder; return placeHolder;
} }

Loading…
Cancel
Save