|
|
@ -358,13 +358,12 @@ public class AlphaFineDialog extends UIDialog { |
|
|
|
defaultPane = new NoResultPane(Inter.getLocText("FR-Designer-AlphaFine_NO_Result"), IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/no_result.png")); |
|
|
|
defaultPane = new NoResultPane(Inter.getLocText("FR-Designer-AlphaFine_NO_Result"), IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/no_result.png")); |
|
|
|
searchResultPane.remove(leftSearchResultPane); |
|
|
|
searchResultPane.remove(leftSearchResultPane); |
|
|
|
searchResultPane.add(defaultPane, BorderLayout.WEST); |
|
|
|
searchResultPane.add(defaultPane, BorderLayout.WEST); |
|
|
|
refreshContainer(); |
|
|
|
|
|
|
|
} else if (searchListModel.getSize() > 0 && defaultPane != null) { |
|
|
|
} else if (searchListModel.getSize() > 0 && defaultPane != null) { |
|
|
|
searchResultPane.remove(defaultPane); |
|
|
|
searchResultPane.remove(defaultPane); |
|
|
|
defaultPane = null; |
|
|
|
defaultPane = null; |
|
|
|
searchResultPane.add(leftSearchResultPane, BorderLayout.WEST); |
|
|
|
searchResultPane.add(leftSearchResultPane, BorderLayout.WEST); |
|
|
|
refreshContainer(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
refreshContainer(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -932,6 +931,8 @@ public class AlphaFineDialog extends UIDialog { |
|
|
|
if (getSelectedIndex() == 1) { |
|
|
|
if (getSelectedIndex() == 1) { |
|
|
|
searchTextField.requestFocus(); |
|
|
|
searchTextField.requestFocus(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) { |
|
|
|
|
|
|
|
searchTextField.requestFocus(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|