boolean action = !isVisible();
if(action) {
setVisible(true);
if(button != null) button.setSelected(true);
}
<BUG>if(string == null) {
search.requestFocusInWindow();

} else if(!new SearchContext(this, search.getText()).matches(string)) {
</BUG>
search.setText(string);

boolean action = !isVisible();
if(action) {
setVisible(true);
if(button != null) button.setSelected(true);
}
if(focus) search.requestFocusInWindow();
if(string != null && !new SearchContext(this, search.getText()).matches(string)) {
search.setText(string);
