I am writing a Java Desktop utility in Java swing and have a minimal part of the GUI in it, most of the work is done on the server side, that is, on the backend. Thus, I do not want to spend a lot of time on a part of the GUI, studying different controls and widgets. The problem is that Swing has two controls for (for me) the same tasks, i.e. drop-down menu, and they are JComboBox and JSpinner I do not know the difference, and I do not want any restrictions that would prevent me from completing mine after I selected it.
I have to use the drop-down list to display the List<String> returned from the DataBase, and can have up to a thousand values. So that the user does not start scrolling, I will enter an alphabetic alphabet as input or some kind of category restriction will be like this, so it may be that I will use certain values โโto display from List<String> . I want my program to be as effective as possible and spend less time in the foreground, since there are many operations on the backend.
Any help would be greatly appreciated
java swing jcombobox jspinner
moCap
source share