Example usage for javax.swing JRadioButtonMenuItem JRadioButtonMenuItem

List of usage examples for javax.swing JRadioButtonMenuItem JRadioButtonMenuItem

Introduction

In this page you can find the example usage for javax.swing JRadioButtonMenuItem JRadioButtonMenuItem.

Prototype

public JRadioButtonMenuItem() 

Source Link

Document

Creates a JRadioButtonMenuItem with no set text or icon.

Usage

From source file:org.pentaho.reporting.designer.core.xul.ActionSwingMenuitem.java

protected JMenuItem createComponent(final String tagName) {
    if (RADIO_MENUITEM.equalsIgnoreCase(tagName)) {
        return new JRadioButtonMenuItem();
    } else if (CHECKBOX_MENUITEM.equalsIgnoreCase(tagName)) {
        return new JCheckBoxMenuItem();
    } else {//  w  w  w. ja  v  a 2 s .  c o  m
        return new JMenuItem();
    }
}

From source file:tpp.TPPFrame.java

private JMenuItem getShowHierarchicalClusteringMenuItem() {
    if (showHierarchicalClusteringMenuItem == null) {
        showHierarchicalClusteringMenuItem = new JRadioButtonMenuItem();
        showHierarchicalClusteringMenuItem.setText("Show HierarchicalClustering");
        showHierarchicalClusteringMenuItem.setEnabled(false);
        showHierarchicalClusteringMenuItem.setSelected(false);
        showHierarchicalClusteringMenuItem.addActionListener(this);
    }//from  ww  w. ja  v  a2 s  . co m
    return showHierarchicalClusteringMenuItem;
}

From source file:tpp.TPPFrame.java

private JMenuItem getShowAxesMenuItem() {
    if (showAxesMenuItem == null) {
        showAxesMenuItem = new JRadioButtonMenuItem();
        showAxesMenuItem.setText("Show Axes");
        showAxesMenuItem.setEnabled(false);
        showAxesMenuItem.setSelected(false);
        showAxesMenuItem.addActionListener(this);
    }/*  w ww. ja  v a2  s .  c o  m*/
    return showAxesMenuItem;
}

From source file:tpp.TPPFrame.java

private JMenuItem getShowTargetMenuItem() {
    if (showTargetMenuItem == null) {
        showTargetMenuItem = new JRadioButtonMenuItem();
        showTargetMenuItem.setText("Show Target");
        showTargetMenuItem.setEnabled(false);
        showTargetMenuItem.setSelected(false);
        showTargetMenuItem.addActionListener(this);
    }//w  w  w  .j av a2s  .  co  m
    return showTargetMenuItem;
}

From source file:tpp.TPPFrame.java

private JMenuItem getAddNoiseMenuItem() {
    if (addNoiseMenuItem == null) {
        addNoiseMenuItem = new JRadioButtonMenuItem();
        addNoiseMenuItem.setText("Add noise to view");
        addNoiseMenuItem.setEnabled(false);
        addNoiseMenuItem.setSelected(false);
        addNoiseMenuItem.addActionListener(this);
    }//from   w  ww . jav  a 2  s .  c  o  m
    return addNoiseMenuItem;
}

From source file:tpp.TPPFrame.java

private JMenuItem getDarkBackgroundMenuItem() {
    if (darkBackgroundMenuItem == null) {
        darkBackgroundMenuItem = new JRadioButtonMenuItem();
        darkBackgroundMenuItem.setText("Dark Background");
        darkBackgroundMenuItem.setEnabled(false);
        darkBackgroundMenuItem.setSelected(true);
        darkBackgroundMenuItem.addActionListener(this);
    }/* w  w w.j  a  va 2s .c  om*/
    return darkBackgroundMenuItem;
}