src/java.desktop/unix/classes/sun/awt/X11/XEmbedChildProxyPeer.java
changeset 49998 9070717a16a1
parent 47216 71c04702a3d5
equal deleted inserted replaced
49997:0540b802b24e 49998:9070717a16a1
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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
    79             }
    79             }
    80         }
    80         }
    81     }
    81     }
    82     public void setEnabled(boolean b) {}
    82     public void setEnabled(boolean b) {}
    83     public void paint(Graphics g) {}
    83     public void paint(Graphics g) {}
    84     public void repaint(long tm, int x, int y, int width, int height) {}
       
    85     public void print(Graphics g) {}
    84     public void print(Graphics g) {}
    86     public void setBounds(int x, int y, int width, int height, int op) {
    85     public void setBounds(int x, int y, int width, int height, int op) {
    87         // Unimplemeneted: Check for min/max hints for non-resizable
    86         // Unimplemeneted: Check for min/max hints for non-resizable
    88         XToolkit.awtLock();
    87         XToolkit.awtLock();
    89         try {
    88         try {
   267      * its sub-elements.  For instance, a lightweight Checkbox needs to layout
   266      * its sub-elements.  For instance, a lightweight Checkbox needs to layout
   268      * the box, as well as the text label.
   267      * the box, as well as the text label.
   269      */
   268      */
   270     public void        layout() {}
   269     public void        layout() {}
   271 
   270 
   272     /**
       
   273      * DEPRECATED:  Replaced by getPreferredSize().
       
   274      */
       
   275     public Dimension            preferredSize() {
       
   276         return getPreferredSize();
       
   277     }
       
   278 
       
   279     /**
       
   280      * DEPRECATED:  Replaced by getMinimumSize().
       
   281      */
       
   282     public Dimension            minimumSize() {
       
   283         return getMinimumSize();
       
   284     }
       
   285 
       
   286     /**
       
   287      * DEPRECATED:  Replaced by setVisible(boolean).
       
   288      */
       
   289     public void         show() {
       
   290         setVisible(true);
       
   291     }
       
   292 
       
   293     /**
       
   294      * DEPRECATED:  Replaced by setVisible(boolean).
       
   295      */
       
   296     public void         hide() {
       
   297         setVisible(false);
       
   298     }
       
   299 
       
   300     /**
       
   301      * DEPRECATED:  Replaced by setEnabled(boolean).
       
   302      */
       
   303     public void         enable() {}
       
   304 
       
   305     /**
       
   306      * DEPRECATED:  Replaced by setEnabled(boolean).
       
   307      */
       
   308     public void         disable() {}
       
   309 
       
   310     /**
       
   311      * DEPRECATED:  Replaced by setBounds(int, int, int, int).
       
   312      */
       
   313     public void reshape(int x, int y, int width, int height) {
       
   314         setBounds(x, y, width, height, SET_BOUNDS);
       
   315     }
       
   316 
       
   317     Window getTopLevel(Component comp) {
   271     Window getTopLevel(Component comp) {
   318         while (comp != null && !(comp instanceof Window)) {
   272         while (comp != null && !(comp instanceof Window)) {
   319             comp = comp.getParent();
   273             comp = comp.getParent();
   320         }
   274         }
   321         return (Window)comp;
   275         return (Window)comp;