Print at Dec 19, 2025, 1:52:15 PM View all posts in this thread on one page
Posted by sputnik3000 at Aug 8, 2016, 6:08:49 PM
How to create a button group in the toolbar?
I want to have a button group on the toolbar which can have one option be selected by the user between options A, B, C, and D. The toolbar button for the option would then be highlighted to show the user that this is the option he/she has chosen. This would be analogous to the radio buttons feature for Java Swing.

Ideally, it would be like the selection between the mouse controls in this section of the toolbar. I'm wondering if this is possible with only the plugin (no modifying the source code).



Posted by Puybaret at Aug 9, 2016, 10:03:45 AM
Re: How to create a button group in the toolbar?
The existing buttons you mentioned are instances of JToggleButton, but you can also use JRadioButton instances gathered with Group class.
It's feasible with a plugin but I wouldn't recommend it.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator