private void switchSearchFunction() { if (requestDispatcher.getNumberOfField() == 0) { searchTextField.setEditable(false); resetButton.setEnabled(false); } else { searchTextField.setEditable(true); resetButton.setEnabled(true); } }
private void updateSearchResult() { String[] keywords = searchTextField.getText().split(" "); requestDispatcher.searchMethodInfoList(keywords); }