src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java
changeset 58325 d32a3b1ca84a
parent 47216 71c04702a3d5
equal deleted inserted replaced
58324:0aba35254e00 58325:d32a3b1ca84a
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    50  * of {@code CheckBoxMenuItem}:
    50  * of {@code CheckBoxMenuItem}:
    51  * <p>
    51  * <p>
    52  * <img src="doc-files/MenuBar-1.gif"
    52  * <img src="doc-files/MenuBar-1.gif"
    53  * alt="Menu labeled Examples, containing items Basic, Simple, Check, and More
    53  * alt="Menu labeled Examples, containing items Basic, Simple, Check, and More
    54  * Examples. The Check item is a CheckBoxMenuItem instance, in the off state."
    54  * Examples. The Check item is a CheckBoxMenuItem instance, in the off state."
    55  * style="float:center; margin: 7px 10px;">
    55  * style="margin: 7px 10px;">
    56  * <p>
    56  * <p>
    57  * The item labeled {@code Check} shows a check box menu item
    57  * The item labeled {@code Check} shows a check box menu item
    58  * in its "off" state.
    58  * in its "off" state.
    59  * <p>
    59  * <p>
    60  * When a check box menu item is selected, AWT sends an item event to
    60  * When a check box menu item is selected, AWT sends an item event to