Here you can find the source of createJCheckBox(Rectangle bounds)
JCheckBox
object with the given properties.
Parameter | Description |
---|---|
bounds | The dimension of the check box |
JCheckBox
object
public static JCheckBox createJCheckBox(Rectangle bounds)
//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; } }