## Uses of Class
java.awt.Checkbox

- Packages that use Checkbox
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.

- - ### Uses of Checkbox in java.awt

    Methods in java.awt that return Checkbox
    Modifier and Type | Method | Description
    --- | --- | ---
    `Checkbox` | CheckboxGroup.`getCurrent()` Deprecated. As of JDK version 1.1, replaced by `getSelectedCheckbox()`.
    `Checkbox` | CheckboxGroup.`getSelectedCheckbox()` Gets the current choice from this check box group.

    Methods in java.awt with parameters of type Checkbox
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected abstract java.awt.peer.CheckboxPeer` | Toolkit.`createCheckbox(Checkbox target)` Creates this toolkit's implementation of `Checkbox` using the specified peer interface.
    `void` | CheckboxGroup.`setCurrent(Checkbox box)` Deprecated. As of JDK version 1.1, replaced by `setSelectedCheckbox(Checkbox)`.
    `void` | CheckboxGroup.`setSelectedCheckbox(Checkbox box)` Sets the currently selected check box in this group to be the specified check box.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.