Test fixes

This commit is contained in:
dragonmacher 2024-10-12 15:17:07 -04:00
parent 9877d30d94
commit 7cb190620c
6 changed files with 46 additions and 37 deletions

View file

@ -42,14 +42,22 @@ public class KeyEntryPanel extends JPanel {
keyEntryField = new KeyEntryTextField(columns, listener);
clearButton = new EmptyBorderButton(Icons.DELETE_ICON);
clearButton.setToolTipText("Clear the current key binding");
clearButton.addActionListener(e -> keyEntryField.clearField());
clearButton.setName("Clear Key Binding");
clearButton.addActionListener(e -> keyEntryField.clearKeyStroke());
add(keyEntryField);
add(Box.createHorizontalStrut(2));
add(clearButton);
}
/**
* Returns the text field used by this class
* @return the text field
*/
public JTextField getTextField() {
return keyEntryField;
}
/**
* Sets the key stroke on this panel
* @param ks the key stroke