equal
deleted
inserted
replaced
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 |
553 // DO NOT INVOKE CLIENT CODE ON THIS THREAD! |
553 // DO NOT INVOKE CLIENT CODE ON THIS THREAD! |
554 public void handleStateChange(int oldState, int newState) { |
554 public void handleStateChange(int oldState, int newState) { |
555 postEvent(new WindowEvent((Window)target, |
555 postEvent(new WindowEvent((Window)target, |
556 WindowEvent.WINDOW_STATE_CHANGED, |
556 WindowEvent.WINDOW_STATE_CHANGED, |
557 oldState, newState)); |
557 oldState, newState)); |
558 } |
|
559 |
|
560 /** |
|
561 * DEPRECATED: Replaced by getInsets(). |
|
562 */ |
|
563 public Insets insets() { |
|
564 return getInsets(); |
|
565 } |
558 } |
566 |
559 |
567 boolean isAutoRequestFocus() { |
560 boolean isAutoRequestFocus() { |
568 if (XToolkit.isToolkitThread()) { |
561 if (XToolkit.isToolkitThread()) { |
569 return AWTAccessor.getWindowAccessor().isAutoRequestFocus((Window)target); |
562 return AWTAccessor.getWindowAccessor().isAutoRequestFocus((Window)target); |