Package javax.swing

Examples of javax.swing.ButtonGroup


    private static class ButtonGroupWrapper {
        private ButtonGroup _group;
        private AbstractButton _dummy;
       
        public ButtonGroupWrapper() {
            _group = new ButtonGroup();
            _dummy = new JRadioButton();

            // We need a dummy button to have the appearance of all of
            // the radio buttons being in an unselected state.
            //
View Full Code Here


        showNoStackTraceRadioButton.putClientProperty(STACK_TRACE_LEVEL_CLIENT_PROPERTY, StartParameter.ShowStacktrace.INTERNAL_EXCEPTIONS);
        showStackTrackRadioButton.putClientProperty(STACK_TRACE_LEVEL_CLIENT_PROPERTY, StartParameter.ShowStacktrace.ALWAYS);
        showFullStackTrackRadioButton.putClientProperty(STACK_TRACE_LEVEL_CLIENT_PROPERTY, StartParameter.ShowStacktrace.ALWAYS_FULL);

        stackTraceButtonGroup = new ButtonGroup();
        stackTraceButtonGroup.add(showNoStackTraceRadioButton);
        stackTraceButtonGroup.add(showStackTrackRadioButton);
        stackTraceButtonGroup.add(showFullStackTrackRadioButton);

        showNoStackTraceRadioButton.setSelected(true);
View Full Code Here

    preDefinedPageSizeBox = new JCheckBox();
    preDefinedPageSizeBox.addChangeListener(new PageSizeCheckBoxSelectionAction());
    userDefinedPageSizeBox = new JCheckBox();
    userDefinedPageSizeBox.addChangeListener(new PageSizeCheckBoxSelectionAction());

    final ButtonGroup pageSizeGroup = new ButtonGroup();
    pageSizeGroup.add(preDefinedPageSizeBox);
    pageSizeGroup.add(userDefinedPageSizeBox);

    spanHorizontalField = new JTextField();
    spanHorizontalField.setColumns(5);
    spanHorizontalField.getDocument().addDocumentListener(revalidateListener);
    spanVerticalField = new JTextField();
    spanVerticalField.setColumns(5);
    spanVerticalField.getDocument().addDocumentListener(revalidateListener);
    marginTopField = new JTextField();
    marginTopField.setColumns(5);
    marginTopField.getDocument().addDocumentListener(revalidateListener);
    marginLeftField = new JTextField();
    marginLeftField.setColumns(5);
    marginLeftField.getDocument().addDocumentListener(revalidateListener);
    marginBottomField = new JTextField();
    marginBottomField.setColumns(5);
    marginBottomField.getDocument().addDocumentListener(revalidateListener);
    marginRightField = new JTextField();
    marginRightField.setColumns(5);
    marginRightField.getDocument().addDocumentListener(revalidateListener);

    final ButtonGroup orientationGroup = new ButtonGroup();
    orientationGroup.add(portraitModeBox);
    orientationGroup.add(landscapeModeBox);

    pageFormatBox.addActionListener(new PageSizeSelectionAction());

    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
View Full Code Here

    getFormValidator().registerButton(rbSeparatorColon);
    getFormValidator().registerButton(rbSeparatorOther);
    getFormValidator().registerButton(rbSeparatorSemicolon);
    getFormValidator().registerButton(rbSeparatorTab);

    final ButtonGroup btg = new ButtonGroup();
    btg.add(rbSeparatorTab);
    btg.add(rbSeparatorColon);
    btg.add(rbSeparatorSemicolon);
    btg.add(rbSeparatorOther);

    final Action selectAction = new ActionSelectSeparator();
    rbSeparatorTab.addActionListener(selectAction);
    rbSeparatorColon.addActionListener(selectAction);
    rbSeparatorSemicolon.addActionListener(selectAction);
View Full Code Here

    getFormValidator().registerButton(rbSeparatorColon);
    getFormValidator().registerButton(rbSeparatorOther);
    getFormValidator().registerButton(rbSeparatorSemicolon);
    getFormValidator().registerButton(rbSeparatorTab);

    final ButtonGroup btg = new ButtonGroup();
    btg.add(rbSeparatorTab);
    btg.add(rbSeparatorColon);
    btg.add(rbSeparatorSemicolon);
    btg.add(rbSeparatorOther);

    final Action selectAction = new CSVTableExportDialog.ActionSelectSeparator();
    rbSeparatorTab.addActionListener(selectAction);
    rbSeparatorColon.addActionListener(selectAction);
    rbSeparatorSemicolon.addActionListener(selectAction);
View Full Code Here

    pnlSecurityConfig.setLayout(new GridLayout());
    pnlSecurityConfig.add(rbSecurityNone);
    pnlSecurityConfig.add(rbSecurity40Bit);
    pnlSecurityConfig.add(rbSecurity128Bit);

    final ButtonGroup btGrpSecurity = new ButtonGroup();
    btGrpSecurity.add(rbSecurity128Bit);
    btGrpSecurity.add(rbSecurity40Bit);
    btGrpSecurity.add(rbSecurityNone);

    return pnlSecurityConfig;
  }
View Full Code Here

            PlainTextExportDialog.TYPE_IBM_OUTPUT));

    txFilename = new JTextField();
    encodingSelector = new EncodingSelector();

    final ButtonGroup bg = new ButtonGroup();
    bg.add(rbPlainPrinterCommandSet);
    bg.add(rbIBMPrinterCommandSet);
    bg.add(rbEpson9PrinterCommandSet);
    bg.add(rbEpson24PrinterCommandSet);


    getFormValidator().registerTextField(txFilename);
    getFormValidator().registerButton(rbEpson24PrinterCommandSet);
    getFormValidator().registerButton(rbEpson9PrinterCommandSet);
View Full Code Here

        radioDoNotUseDir = ComponentFactory.getRadioButton(DcResources.getText("lblDoNotUseDirInfo"), null);
        radio1stDirAlbum = ComponentFactory.getRadioButton(DcResources.getText("lblUseDirAsAlbumName"), null);
        radio1stDirArtist = ComponentFactory.getRadioButton(DcResources.getText("lblUseDirAsArtistName"), null);
        radio1stDirAlbum2ndDirArtist = ComponentFactory.getRadioButton(DcResources.getText("lblUseDirAsArtistSubDirAsAlbum"), null);

        ButtonGroup group = new ButtonGroup();
        group.add(radioDoNotUseDir);
        group.add(radio1stDirAlbum);
        group.add(radio1stDirArtist);
        group.add(radio1stDirAlbum2ndDirArtist);
       
        panelDirs.add(radioDoNotUseDir, Layout.getGBC( 0, 3, 3, 1, 1.0, 1.0
                ,GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL,
                 new Insets(0, 5, 0, 5), 0, 0));
        panelDirs.add(radio1stDirAlbum, Layout.getGBC( 0, 4, 3, 1, 1.0, 1.0
View Full Code Here

    getFormValidator().registerButton(rbSeparatorColon);
    getFormValidator().registerButton(rbSeparatorOther);
    getFormValidator().registerButton(rbSeparatorSemicolon);
    getFormValidator().registerButton(rbSeparatorTab);

    final ButtonGroup btg = new ButtonGroup();
    btg.add(rbSeparatorTab);
    btg.add(rbSeparatorColon);
    btg.add(rbSeparatorSemicolon);
    btg.add(rbSeparatorOther);

    final Action selectAction = new ActionSelectSeparator();
    rbSeparatorTab.addActionListener(selectAction);
    rbSeparatorColon.addActionListener(selectAction);
    rbSeparatorSemicolon.addActionListener(selectAction);
View Full Code Here

        (resources.getString("config-description-editor.type-class"),
            ConfigDescriptionEditor.TYPE_CLASS)); //$NON-NLS-1$
    rbEnum = new JRadioButton(new SelectTypeAction
        (resources.getString("config-description-editor.type-enum"), ConfigDescriptionEditor.TYPE_ENUM)); //$NON-NLS-1$

    final ButtonGroup bg = new ButtonGroup();
    bg.add(rbText);
    bg.add(rbClass);
    bg.add(rbEnum);

    panel.add(rbText);
    panel.add(rbClass);
    panel.add(rbEnum);
View Full Code Here

TOP

Related Classes of javax.swing.ButtonGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.