src/java.desktop/unix/classes/sun/awt/X11/XMenuItemPeer.java
changeset 49998 9070717a16a1
parent 47216 71c04702a3d5
equal deleted inserted replaced
49997:0540b802b24e 49998:9070717a16a1
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2013, 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
   163 
   163 
   164     public void setEnabled(boolean enabled) {
   164     public void setEnabled(boolean enabled) {
   165         repaintIfShowing();
   165         repaintIfShowing();
   166     }
   166     }
   167 
   167 
   168     /**
       
   169      * DEPRECATED:  Replaced by setEnabled(boolean).
       
   170      * @see java.awt.peer.MenuItemPeer
       
   171      */
       
   172     public void enable() {
       
   173         setEnabled( true );
       
   174     }
       
   175 
       
   176     /**
       
   177      * DEPRECATED:  Replaced by setEnabled(boolean).
       
   178      * @see java.awt.peer.MenuItemPeer
       
   179      */
       
   180     public void disable() {
       
   181         setEnabled( false );
       
   182     }
       
   183 
       
   184     /************************************************
   168     /************************************************
   185      *
   169      *
   186      * Access to target's fields
   170      * Access to target's fields
   187      *
   171      *
   188      ************************************************/
   172      ************************************************/