src/java.desktop/share/classes/java/awt/Frame.java
changeset 58325 d32a3b1ca84a
parent 47216 71c04702a3d5
equal deleted inserted replaced
58324:0aba35254e00 58325:d32a3b1ca84a
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2015, 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
    81  * origin of the virtual-coordinate system is at the upper left-hand
    81  * origin of the virtual-coordinate system is at the upper left-hand
    82  * corner of the primary physical screen.  Depending on the location
    82  * corner of the primary physical screen.  Depending on the location
    83  * of the primary screen in the virtual device, negative coordinates
    83  * of the primary screen in the virtual device, negative coordinates
    84  * are possible, as shown in the following figure.
    84  * are possible, as shown in the following figure.
    85  * <p>
    85  * <p>
    86  * <img src="doc-files/MultiScreen.gif"
    86  * <img src="doc-files/MultiScreen.gif" alt="Diagram of virtual device
    87  * alt="Diagram of virtual device encompassing three physical screens and one primary physical screen. The primary physical screen
    87  * encompassing three physical screens and one primary physical screen. The
    88  * shows (0,0) coords while a different physical screen shows (-80,-100) coords."
    88  * primary physical screen shows (0,0) coords while a different physical screen
    89  * style="float:center; margin: 7px 10px;">
    89  * shows (-80,-100) coords." style="margin: 7px 10px;">
    90  * <p>
    90  * <p>
    91  * In such an environment, when calling {@code setLocation},
    91  * In such an environment, when calling {@code setLocation},
    92  * you must pass a virtual coordinate to this method.  Similarly,
    92  * you must pass a virtual coordinate to this method.  Similarly,
    93  * calling {@code getLocationOnScreen} on a {@code Frame}
    93  * calling {@code getLocationOnScreen} on a {@code Frame}
    94  * returns virtual device coordinates.  Call the {@code getBounds}
    94  * returns virtual device coordinates.  Call the {@code getBounds}