equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2014, 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 |
135 } |
135 } |
136 |
136 |
137 // NOTE: This method may be called by privileged threads. |
137 // NOTE: This method may be called by privileged threads. |
138 // DO NOT INVOKE CLIENT CODE ON THIS THREAD! |
138 // DO NOT INVOKE CLIENT CODE ON THIS THREAD! |
139 public void handleResize(Rectangle bounds) { |
139 public void handleResize(Rectangle bounds) { |
140 AWTAccessor.getComponentAccessor().setSize((Component)target, bounds.width, bounds.height); |
140 AWTAccessor.getComponentAccessor().setSize(target, bounds.width, bounds.height); |
141 postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_RESIZED)); |
141 postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_RESIZED)); |
142 } |
142 } |
143 |
143 |
144 |
144 |
145 public void postPaintEvent(Component target, int x, int y, int w, int h) { |
145 public void postPaintEvent(Component target, int x, int y, int w, int h) { |