I am working with Swing and am adding a JComboBox to a JPanel. Normally, when you click a JComboBox it enumerates the possible options vertically (similar to combo boxes on any website).
However, I would like for the ComboBox to expand horizontally - is there any way to do this without writing a custom renderer?
Vertical Expansion
[ ComboBox ]
- Option
- Option
- Option
Horizontal Expansion
[ ComboBox ] -- [ Option | Option | Option | Option ]