How can I change the width of a JComboBox dropdown list?
问题 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