How does NetBeans create those buttons that have the little down arrow to the right of the main button which when pressed brings up a menu? The NetBeans "Debug Project button is one example. Are they two separate JButton
components? Just how are they constructed?
Asked
Active
Viewed 2,159 times
0

Andrew Thompson
- 168,117
- 40
- 217
- 433

Spencer Keller
- 11
- 4
-
3Sounds like a `JComboBox` .. On 2nd thoughts, see also ['split button'](http://stackoverflow.com/q/11646290/418556). – Andrew Thompson Aug 24 '15 at 23:44
-
More [here](http://stackoverflow.com/search?tab=votes&q=%5bswing%5d%20splitbutton). – trashgod Aug 25 '15 at 00:42
1 Answers
-1
It's called a JComboBox I believe. You can find some documentation on how to make comboboxes here: https://docs.oracle.com/javase/tutorial/uiswing/components/combobox.html

Stephanie Wilson
- 55
- 1
- 1
- 7