Java tutorial
//package com.java2s; import java.awt.Rectangle; import javax.swing.JCheckBox; public class Main { /** * 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; } }