I need to create a button like this in Java:
You can click on the left part of the button for a normal button action and you can click on the arrow on the right to open a drop down menu.
Is it possible to create something like this in java? Thanks!
In this tutorial the writer shows how to create a button and have a drop down appear next to it when it is clicked. This looks a lot like what you try to achieve. Hope this helps.
http://java.dzone.com/news/drop-down-buttons-swing-new-al
The split button might provide a simpler solution if the Gnu Lesser GPL is ok for you
http://code.google.com/p/jsplitbutton/
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