Java JCheckBox newJCheckBox(String n, char m)

Here you can find the source of newJCheckBox(String n, char m)

Description

new J Check Box

License

Apache License

Declaration

public static JCheckBox newJCheckBox(String n, char m) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.JCheckBox;

public class Main {
    public static JCheckBox newJCheckBox(String n, char m) {
        return newJCheckBox(n, m, false);
    }//from  w  ww  .j a v  a  2 s.c  om

    public static JCheckBox newJCheckBox(String n, char m, boolean isS) {
        JCheckBox cb = new JCheckBox(n);
        cb.setMnemonic(m);
        cb.setSelected(isS);
        return cb;
    }
}

Related

  1. imply(final JCheckBox checked, final boolean checkedState, final JCheckBox changed, final boolean impliedState)
  2. initJCheckBox(JCheckBox box, String element)
  3. isCheckBoxModified(JCheckBox checkBox, boolean originalValue)
  4. link(final JCheckBox box, final JComponent... comps)
  5. newJCheckBox()
  6. onCheckBoxChange(JCheckBox field, final Runnable task)
  7. setDependency(final JCheckBox master, final JCheckBox slave)
  8. setSelectedWithClick(JCheckBox checkBox, boolean selected)
  9. update(JCheckBox box, JComponent... comps)