At example libre office has button with drop down menu, but it isn't combobox:
Does Swing have analog or something similar?
There's no SplitButton implementation provided by Java. I provided a link to another question on this site in my comment on potential implementations and would add that Jidesoft has also an implementation of a SplitButton in their open source JIDE Common Layer, check the licenses first.
Not directly, but you can easily achieve it by wrapping an ImageIcon into a Button.
(arrow_down.png
is the downwards pointing, black arrow)
button = new JButton();
button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/icons/arrow_down.png")));
button.setBorderPainted(false);
button.setFocusPainted(false);
button.setContentAreaFilled(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With