Horizontal scroll to DialogComponentStringSelection component

Hi, I would like to know if there is any way to put a horizontal Scroll to the DialogComponentStringSelection component. That is, like the scroll that appears in the image.
image

Hi @Taday,

this component doesn’t support this, it is based on JComboBox which doesn’t support this natively either. To get this behavior you need to implement your own dialogcomponent, that enriches the combobox with the horizontal scroll. Take a look at this example for how to add this behavior to a JComboBox https://tips4java.wordpress.com/2010/11/28/combo-box-popup/.

best,
Gabriel

2 Likes

I was afraid that was the solution. Thank you very much.