Lines Matching defs:window

39  * window size. A "top-level window" is an instance of the {@code Window}
64 * @param window the window to get the security warning size for
66 * @throws NullPointerException if the window argument is null
67 * @throws IllegalArgumentException if the window is trusted (i.e.
70 public static Dimension getSize(Window window) {
71 if (window == null) {
73 "The window argument should not be null.");
75 if (window.getWarningString() == null) {
77 "The window must have a non-null warning string.");
82 return AWTAccessor.getWindowAccessor().getSecurityWarningSize(window);
92 * bounds of the window. The {@code 1.0f} value represents the right
93 * (bottom) edge of the bounds. Whenever the size of the window changes,
104 * corner of the window), then the {@code point} argument represents the
106 * the window. The "absolute" in this case means that the position of the
107 * security warning is not effected by resizing of the window.
112 * the rectangular bounds of the window (see {@link Window#getBounds}), and
120 * corner of the window, two pixels to the right from the right edge. This
128 * @param window the window to set the position of the security warning for
134 * @throws NullPointerException if the window argument is null
136 * @throws IllegalArgumentException if the window is trusted (i.e.
141 public static void setPosition(Window window, Point2D point,
144 if (window == null) {
146 "The window argument should not be null.");
148 if (window.getWarningString() == null) {
150 "The window must have a non-null warning string.");
165 AWTAccessor.getWindowAccessor().setSecurityWarningPosition(window,