.. java:import:: java.util Enumeration .. java:import:: javax.swing AbstractButton .. java:import:: javax.swing ButtonGroup ButtonGroupUtils ================ .. java:package:: ch.epfl.leb.sass.ijplugin :noindex: .. java:type:: public class ButtonGroupUtils Utilities for working with button groups. See https://stackoverflow.com/questions/201287/how-do-i-get-which-jradiobutton-is-selected-from-a-buttongroup#13232816 :author: Kyle M. Douglass Methods ------- getSelectedButtonText ^^^^^^^^^^^^^^^^^^^^^ .. java:method:: public static String getSelectedButtonText(ButtonGroup buttonGroup) :outertype: ButtonGroupUtils Determines the label of the current selected button. :param buttonGroup: :return: The text label of the selected button. selectButtonModelFromText ^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: public static void selectButtonModelFromText(ButtonGroup buttonGroup, String text) :outertype: ButtonGroupUtils Selects the button in a button group based on its text label. :param buttonGroup: :param text: The text label of the desired button to select.