Package javax.swing

Examples of javax.swing.JCheckBoxMenuItem$AccessibleJCheckBoxMenuItem


   *
   * @return javax.swing.JMenuItem
   */
  private JMenuItem getFormulaExplorerMenuItem() {
    if (formulaExplorerMenuItem == null) {
      formulaExplorerMenuItem = new JCheckBoxMenuItem();
      formulaExplorerMenuItem.setActionCommand("Formula Explorer");
      formulaExplorerMenuItem.setSelected(true);
      formulaExplorerMenuItem.setText("Formula Explorer");
      formulaExplorerMenuItem
          .addActionListener(new java.awt.event.ActionListener() {
View Full Code Here


    return systemInfoMenuItem;
  }

  private JCheckBoxMenuItem getLookAndFeelMenuItem() {
    if (lookAndFeelMenuItem == null) {
      lookAndFeelMenuItem = new JCheckBoxMenuItem();
      lookAndFeelMenuItem.setText("UI Theme (Look and Feel)");
      lookAndFeelMenuItem.setVisible(true);
      lookAndFeelMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          if (lookAndFeelMenuItem.isSelected()) {
View Full Code Here

   *
   * @return javax.swing.JCheckBoxMenuItem
   */
  private JCheckBoxMenuItem getOperatorsMenuItem() {
    if (operatorsMenuItem == null) {
      operatorsMenuItem = new JCheckBoxMenuItem();
      operatorsMenuItem.setText("Operators");
      operatorsMenuItem
          .addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent e) {
              operatorsMenuItem_actionPerformed(e);
View Full Code Here

   *
   * @return javax.swing.JCheckBoxMenuItem
   */
  private JCheckBoxMenuItem getTinaMenuItem() {
    if (tinaMenuItem == null) {
      tinaMenuItem = new JCheckBoxMenuItem();
      tinaMenuItem.setText("Fractal flames");
      tinaMenuItem.setEnabled(true);
      tinaMenuItem
          .addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent e) {
View Full Code Here

   *
   * @return javax.swing.JCheckBoxMenuItem
   */
  private JCheckBoxMenuItem getEDENMenuItem() {
    if (edenMenuItem == null) {
      edenMenuItem = new JCheckBoxMenuItem();
      edenMenuItem.setText("Structure Synthesizer");
      edenMenuItem.setEnabled(true);
      edenMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          edenMenuItem_actionPerformed(e);
View Full Code Here

   *
   * @return javax.swing.JMenuItem
   */
  private JCheckBoxMenuItem getScriptMenuItem() {
    if (scriptMenuItem == null) {
      scriptMenuItem = new JCheckBoxMenuItem();
      scriptMenuItem.setText("Script");
      scriptMenuItem.setSelected(true);
      scriptMenuItem
          .addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent e) {
View Full Code Here

    mi = new JMenuItem(FBEdit.getMessage("menu.username"), 85);
    fbedit.setCtrlAccelerator(mi, 'U');
    mi.setActionCommand("username");
    mi.addActionListener(action);
    ret.add(mi);
    readOnStartup = new JCheckBoxMenuItem(FBEdit.getMessage("menu.config_auto_read"), Boolean.parseBoolean(fbedit.getRASstate()));
    readOnStartup.setActionCommand("config_auto_read");
    readOnStartup.addActionListener(action);
    ret.add(readOnStartup);
    NoChecks = new JCheckBoxMenuItem(FBEdit.getMessage("menu.nochecks"), Boolean.parseBoolean(fbedit.getNoChecksState()));
    NoChecks.setActionCommand("nochecks");
    NoChecks.addActionListener(action);
    // NoChecks.setEnabled(false);
    ret.add(NoChecks);
    return ret;
View Full Code Here

        }
      }
    });
    menu1.add(stepItem);
   
    final JCheckBoxMenuItem playItem = new JCheckBoxMenuItem("Play");
    playItem.setMnemonic(KeyEvent.VK_P);
    playItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P,0));
    playItem.addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
        if(_thread==null || !_thread.isAlive()) {
          _thread = createThread();
          _thread.start();
          System.out.println("Thread running");
View Full Code Here

        col.setTableColumn(pta.getColumnModel().getColumn(col.ordinal()));
      }
    }

    public void actionPerformed(ActionEvent e) {
      JCheckBoxMenuItem m = (JCheckBoxMenuItem) e.getSource();
      if (m == null) {
        return;
      }
      pta.showHideColumn(Columns.valueOfCaption(m.getText()), m.getState());
    }
View Full Code Here

    initComponents(projectTaskArea);
  }
 
  private void initComponents(ProjectTaskArea projectTaskArea) {
    for(Columns col : Columns.values()) {
      menuItems[col.ordinal()] = new JCheckBoxMenuItem();
      menuItems[col.ordinal()].addActionListener(new ProjectTaskArea.ColumnShowHideAction(projectTaskArea));
      menuItems[col.ordinal()].setText(col.toString());
      menuItems[col.ordinal()].setSelected(col.isVisible());
      add(menuItems[col.ordinal()]);
    }
View Full Code Here

TOP

Related Classes of javax.swing.JCheckBoxMenuItem$AccessibleJCheckBoxMenuItem

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.