Programming Examples

Are you a Programmer or Application Developer or a DBA? Take a cup of coffee, sit back and spend few minutes here :)

Tag Archive for ‘addSeparator’

AWT CheckboxMenuItem Example

AWT CheckboxMenuItem Example

In this example, we will learn how to use AWT CheckboxMenuItem and Menu Separator.

Here, we use our previous example on AWT Menu and change it to create CheckboxMenuItem. We create three checkbox menu items for Circle, Pentagon and Rectangle. In the above picture, we can also see a sunken line running between normal menu items and checked menu items. This line is called a Menu Separator. We create that here as well in this example.

Continue Reading →