Open bpangburn opened 2 years ago
I think the key handling is different for datagrids vs forms, but just to note it, if we ever need to isolate keystrokes inside of a combobox inside of a grid, we might have to isolate the EditorComponent. Ran into an issue where we had some F1 system "help" (not internal to SwingSet) that was supposed to open a URL, but ceased to work on SwingSet 4.x comboboxes as the F1 keystroke was not detected.
In SwingSet 4.x the comboboxes (SSComboBox and SSDBComboBox) are (almost?) always in editor mode so to detect the F1 key (or any other key), we need to place the KeyListeners on the EditorComponent using: someSSComboBox.getEditor().getEditorComponent();
In SwingSet Demo, Example 6. Part #3 and #4 are both "Screw"
If you open Example 7 and look at the logging, it appears to be impossible to select the 2nd instance of "Screw". If you give a unique name to Part #4, the problem goes away.
Per @prasanthreddy-git :
Per @errael:
Sounds like the best fix is to try to replace JComboBox with SSComboBox.