src/java.desktop/unix/classes/sun/awt/X11/XPopupMenuPeer.java
changeset 49998 9070717a16a1
parent 47216 71c04702a3d5
child 54871 c2e4aef5edf2
equal deleted inserted replaced
49997:0540b802b24e 49998:9070717a16a1
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, 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
    94     }
    94     }
    95 
    95 
    96 
    96 
    97     public void setEnabled(boolean enabled) {
    97     public void setEnabled(boolean enabled) {
    98         postPaintEvent();
    98         postPaintEvent();
    99     }
       
   100 
       
   101     /**
       
   102      * DEPRECATED:  Replaced by setEnabled(boolean).
       
   103      * @see java.awt.peer.MenuItemPeer
       
   104      */
       
   105     public void enable() {
       
   106         setEnabled( true );
       
   107     }
       
   108 
       
   109     /**
       
   110      * DEPRECATED:  Replaced by setEnabled(boolean).
       
   111      * @see java.awt.peer.MenuItemPeer
       
   112      */
       
   113     public void disable() {
       
   114         setEnabled( false );
       
   115     }
    99     }
   116 
   100 
   117     /*
   101     /*
   118      * From MenuPeer
   102      * From MenuPeer
   119      */
   103      */