I am using Substance L&F and I have set a JComboBox
to editable so that i can select the value that i want from its popup, or type a new value in its Editor.
Typing a new value works fine, but if i want to delete a miss-typed letter from the Combo editor, and i click Backspace to do that it selects the letters in the editor instead of erasing them. Here is a screenshot :
I want the Combo editor to work like a JTextField when typing keyboard letters or Backspace or Delete in it, so is there a way to do that ? Or what is causing this?
See below for the importance of an SSCCE not everything that goes wrong is a bug, most of the times it something wrong in your actual code, which without an SSCCE we are non the wiser.
Seems to work fine for me:
On start up:
After selecting
JComboBox
and pressing Backspace:UPDATE
As per your comment:
See below for details on the Bug:
Substance: Editable JComboBox does not support backspace key
As stated:
Alternatively see my answer here for more L&Fs and/or a way to make your own
UPDATE 2:
Thanks to @Brad (for deciphering the bug log I linked from Substance :P) to fix this simply do:
This work for me!