I am trying to display just the selected row of a JList dropdown, but cannot seem to fix the size of the JScrollPane within which it is contained. The problem is that no matter what I do, the JScrollPane/JList combination is always larger than one row high. Could anyone explain to me how to limit the viewable portion of a JList to just one row?
I was originally using JComboBox, which worked fine as it doesn't need a JScrollPane, but I need to dynamically change the contents of the dropdown list, for which JList seems more suitable.
Thanks in advance,
Greg
I was originally using JComboBox, which worked fine as it doesn't need a JScrollPane, but I need to dynamically change the contents of the dropdown list, for which JList seems more suitable.
Thanks in advance,
Greg