Here you can find the source of newJCheckBox(String n, char m)
public static JCheckBox newJCheckBox(String n, char m)
//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; } }