Java JCheckBox createJCheckBox(Rectangle bounds)

Here you can find the source of createJCheckBox(Rectangle bounds)

Description

Creates a new JCheckBox object with the given properties.

License

Open Source License

Parameter

Parameter Description
bounds The dimension of the check box

Return

A JCheckBox object

Declaration

public static JCheckBox createJCheckBox(Rectangle bounds) 

Method Source Code

//package com.java2s;

import java.awt.Rectangle;

import javax.swing.JCheckBox;

public class Main {
    /**/*from  w ww . ja va  2 s.c om*/
     * Creates a new <code>JCheckBox</code> object with the given properties.
     *
     * @param bounds The dimension of the check box
     * @return A <code>JCheckBox</code> object
     */
    public static JCheckBox createJCheckBox(Rectangle bounds) {
        JCheckBox jCheckBox = new JCheckBox();
        jCheckBox.setBounds(bounds);
        return jCheckBox;
    }
}

Related

  1. addCheckBox(Container container, String label, String placement, boolean debug)
  2. convertToYesNo(JCheckBox checkBox)
  3. createCheckBox(final String title, final Preferences node, final String pref_name, final boolean default_val)
  4. createCheckBox(String name, String command, boolean selected)
  5. createCheckBox(String s, boolean b)
  6. exclusive(final JCheckBox first, final boolean firstState, final JCheckBox second, final boolean secondState)
  7. imply(final JCheckBox checked, final boolean checkedState, final JCheckBox changed, final boolean impliedState)
  8. initJCheckBox(JCheckBox box, String element)
  9. isCheckBoxModified(JCheckBox checkBox, boolean originalValue)