Skip to content

Commit

Permalink
Set focus to new keyword text box upon events
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Mortensen committed Jun 28, 2016
1 parent 6fc88b5 commit b36c945
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -454,7 +454,7 @@ private void addWordButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN
chRegex.setSelected(false);
addWordField.setText("");
pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);

setFocusOnKeywordTextBox();
setButtonStates();
}//GEN-LAST:event_addWordButtonActionPerformed

Expand Down
Expand Up @@ -26,6 +26,7 @@
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.swing.table.AbstractTableModel;
Expand Down Expand Up @@ -65,6 +66,12 @@ private void customizeComponents() {
listsTable.setRowSelectionAllowed(true);
tableModel.resync();

listsTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
globalListSettingsPanel.setFocusOnKeywordTextBox();
}
});
/*
* XmlKeywordSearchList.getCurrent().addPropertyChangeListener(new
* PropertyChangeListener() {
Expand Down

0 comments on commit b36c945

Please sign in to comment.