Example usage for javax.swing JCheckBox setBounds

List of usage examples for javax.swing JCheckBox setBounds

Introduction

In this page you can find the example usage for javax.swing JCheckBox setBounds.

Prototype

public void setBounds(Rectangle r) 

Source Link

Document

Moves and resizes this component to conform to the new bounding rectangle r .

Usage

From source file:Main.java

/**
 * 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
 *//*from w  ww  .ja v  a 2s .c  o m*/
public static JCheckBox createJCheckBox(Rectangle bounds) {
    JCheckBox jCheckBox = new JCheckBox();
    jCheckBox.setBounds(bounds);
    return jCheckBox;
}