Browse Source

REPORT-70463 搜索框键入文本后界面闪烁

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

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

@ -511,7 +511,8 @@ public class AlphaFineFrame extends JFrame {
private void startSearchTextFieldTimer() {
Timer timer = new Timer(TIMER_DELAY, e -> {
if (StringUtils.isEmpty(searchTextField.getText())) {
// 坑 isShowing返回false 即使textField有内容 getText返回的也是空
if (searchTextField.isShowing() && StringUtils.isEmpty(searchTextField.getText())) {
SearchTooltipPopup.getInstance().hide();
switchType(selectedType);
}

Loading…
Cancel
Save