Java Code Examples for javax.swing.JRadioButton#doClick()
The following examples show how to use
javax.swing.JRadioButton#doClick() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SessionAnalysisWorkflowManagerSHRIMP.java From ET_Redux with Apache License 2.0 | 6 votes |
/** * */ public void refreshView() { Enumeration buttons = includedFractions_buttonGroup.getElements(); while (buttons.hasMoreElements()) { JRadioButton b = (JRadioButton) buttons.nextElement(); if (b.isSelected()) { b.doClick(); break; } } if (((TripoliSessionRawDataView) tripoliSessionRawDataView).isSAVED_YAXIS_IS_UNIFORM()) { uniformYaxis.doClick(); } else { independentYaxis.doClick(); } if (((TripoliSessionRawDataView) tripoliSessionRawDataView).getSAVED_DATA_USED_FOR_SCALING().equals(IncludedTypeEnum.ALL)) { allDataUsedForScaling.doClick(); } else { includedDataUsedForScaling.doClick(); } }
Example 2
Source File: SessionAnalysisWorkflowManagerLAICPMS.java From ET_Redux with Apache License 2.0 | 6 votes |
/** * */ public void refreshView() { Enumeration buttons = includedFractions_buttonGroup.getElements(); while (buttons.hasMoreElements()) { JRadioButton b = (JRadioButton) buttons.nextElement(); if (b.isSelected()) { b.doClick(); break; } } if (((TripoliSessionRawDataView) tripoliSessionRawDataView).isSAVED_YAXIS_IS_UNIFORM()) { uniformYaxis.doClick(); } else { independentYaxis.doClick(); } if (((TripoliSessionRawDataView) tripoliSessionRawDataView).getSAVED_DATA_USED_FOR_SCALING().equals(IncludedTypeEnum.ALL)) { allDataUsedForScaling.doClick(); } else { includedDataUsedForScaling.doClick(); } }
Example 3
Source File: HSQLSettings.java From cropplanning with GNU General Public License v3.0 | 6 votes |
public HSQLSettings() { super( HSQLDB.class ); CPSModule.debug( "HSQLSettings", "using pref node:" + HSQLDB.class.toString() ); rdoUseGlobalDir = new JRadioButton( "Use global output directory", false ); rdoUseGlobalDir.addItemListener(this); rdoUseCustomDir = new JRadioButton( "Use other directory:", false ); rdoUseCustomDir.addItemListener(this); ButtonGroup bg = new ButtonGroup(); bg.add( rdoUseCustomDir ); bg.add( rdoUseGlobalDir ); lblCustomOutDir = new JLabel(); flchCustomDir = new JFileChooser(); flchCustomDir.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY ); btnCustomDir = new JButton( "Choose Output Directory" ); btnCustomDir.addActionListener(this); buildConfigPanel(); rdoUseGlobalDir.doClick(); }
Example 4
Source File: GatewayLoginFrameHandler.java From ib-controller with GNU General Public License v3.0 | 5 votes |
private void switchToIBAPI(Window window) throws IBControllerException { JRadioButton button = SwingUtils.findRadioButton(window, "IB API"); if (button == null) button = SwingUtils.findRadioButton(window, "TWS/API") ; if (button == null) throw new IBControllerException("IB API radio button"); if (! button.isSelected()) button.doClick(); }
Example 5
Source File: GatewayLoginFrameHandler.java From ib-controller with GNU General Public License v3.0 | 4 votes |
private void switchToFIX(Window window) throws IBControllerException { JRadioButton button = SwingUtils.findRadioButton(window, "FIX CTCI"); if (button == null) throw new IBControllerException("FIX CTCI radio button"); if (! button.isSelected()) button.doClick(); }
Example 6
Source File: SwingUtils.java From IBC with GNU General Public License v3.0 | 3 votes |
/** * Sets or clears the specified JRadioButton . * @param window * the window in which to search for the required JRadioButton * @param buttonText * the label for the required JRadioButton * @param value * true to set the JRadioButton ; false to clear it * @return * true if the JRadioButton was found; otherwise false */ static boolean setRadioButtonSelected(Window window, String buttonText) { final JRadioButton rb = findRadioButton(window, buttonText); if (rb == null) return false; if (rb.isSelected()) return true; rb.doClick(); return true; }
Example 7
Source File: SwingUtils.java From ib-controller with GNU General Public License v3.0 | 3 votes |
/** * Sets or clears the specified JRadioButton . * @param window * the window in which to search for the required JRadioButton * @param buttonText * the label for the required JRadioButton * @param value * true to set the JRadioButton ; false to clear it * @return * true if the JRadioButton was found; otherwise false */ static boolean setRadioButtonSelected(Window window, String buttonText) { final JRadioButton rb = findRadioButton(window, buttonText); if (rb == null) return false; if (rb.isSelected()) return true; rb.doClick(); return true; }