equal
deleted
inserted
replaced
30 |
30 |
31 import java.awt.event.ComponentEvent; |
31 import java.awt.event.ComponentEvent; |
32 |
32 |
33 import sun.util.logging.PlatformLogger; |
33 import sun.util.logging.PlatformLogger; |
34 |
34 |
35 import sun.awt.ComponentAccessor; |
35 import sun.awt.AWTAccessor; |
36 |
36 |
37 /** |
37 /** |
38 * This class implements window which serves as content window for decorated frames. |
38 * This class implements window which serves as content window for decorated frames. |
39 * Its purpose to provide correct events dispatching for the complex |
39 * Its purpose to provide correct events dispatching for the complex |
40 * constructs such as decorated frames. |
40 * constructs such as decorated frames. |
133 } |
133 } |
134 |
134 |
135 // NOTE: This method may be called by privileged threads. |
135 // NOTE: This method may be called by privileged threads. |
136 // DO NOT INVOKE CLIENT CODE ON THIS THREAD! |
136 // DO NOT INVOKE CLIENT CODE ON THIS THREAD! |
137 public void handleResize(Rectangle bounds) { |
137 public void handleResize(Rectangle bounds) { |
138 ComponentAccessor.setWidth((Component)target, bounds.width); |
138 AWTAccessor.getComponentAccessor().setSize((Component)target, bounds.width, bounds.height); |
139 ComponentAccessor.setHeight((Component)target, bounds.height); |
|
140 postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_RESIZED)); |
139 postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_RESIZED)); |
141 } |
140 } |
142 |
141 |
143 |
142 |
144 public void handleExposeEvent(Component target, int x, int y, int w, int h) { |
143 public void handleExposeEvent(Component target, int x, int y, int w, int h) { |