Browse Source

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

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

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

@ -599,9 +599,10 @@ public class AlphaFineFrame extends JFrame {
// 坑 isShowing返回false 即使textField有内容 getText返回的也是空 // 坑 isShowing返回false 即使textField有内容 getText返回的也是空
if (searchTextField.isShowing() && StringUtils.isEmpty(searchTextField.getText())) { if (searchTextField.isShowing() && StringUtils.isEmpty(searchTextField.getText())) {
SearchTooltipPopup.getInstance().hide(); SearchTooltipPopup.getInstance().hide();
clearLabel.setVisible(false);
switchType(selectedType); switchType(selectedType);
} } else if (searchTextField.hasFocus()) {
else if (searchTextField.hasFocus()) { clearLabel.setVisible(true);
SearchTooltipPopup.getInstance().show(searchTextFieldWrapperPane); SearchTooltipPopup.getInstance().show(searchTextFieldWrapperPane);
} }

Loading…
Cancel
Save