java - How do you create Swing "dropdown" buttons? -
this question has answer here: splitbutton in java 2 answers how netbeans create buttons have little down arrow right of main button when pressed brings menu? netbeans "debug project button 1 example. 2 separate jbutton components? how constructed? it's called jcombobox believe. can find documentation on how make comboboxes here: https://docs.oracle.com/javase/tutorial/uiswing/components/combobox.html