Limit the size of a JComboBox button but not its drop down list
I'm trying to display large strings in JComboBox but this forces the JComboBox to be as large as the largest string.
I have limited the size of the JComboBox button by overloading getPrefferedSize with a constant width. This then limits the size of the drop down list box. I want to limit the size of the button but allow the list to be as wide as it likes or at least have a horizontal scroll bar.
Have you any sugesstions about how to achive this?