I have an editable JComboBox
which contains a list of single letter values. Because of that the combobox is very small.
Every letter has a special meaning which sometimes isn't clear to the user in case of rarely used letters. Because of that I've created a custom ListCellRenderer
which shows the meaning of each letter in the dropdown list.
Unfortunately this explanation doesn't fit into the dropdown because it is to small, because it has the same width as the combobox.
Is there any way to make the dropdown list wider than the combobox?
This is what I want to achieve:
---------------------
| Small JCombobox | V |
--------------------------------------------
| "Long item 1" |
--------------------------------------------
| "Long item 2" |
--------------------------------------------
| "Long item 3" |
--------------------------------------------
I cannot change the width of the combobox because the application is a recreation of an old legacy application where some things have to be exactly as they were before. (In this case the combobox has to keep it's small size at all costs)