You need a JComboBox whose width doesn’t depend on the widest of its items, but you still want the dropdown list to be wider than the JComboBox, wide enough to display properly the widest item. For example :
How to resize the width of a JComboBox dropdown list without resizing its edit box ?
Leave a reply