CVSROOT: /cvsroot/classpath Module name: classpath Changes by: Roman Kennke <rabbit78> 06/09/18 13:23:00
Modified files: java/awt : Component.java Container.java . : ChangeLog Log message: 2006-09-18 Roman Kennke <[EMAIL PROTECTED]> * java/awt/Component.java (show): Test for the peer beeing lightweight directly. (paintAll): Validate before painting. Don't paint when not showing. Call peer.paint() when the component is heavyweight. (repaint): Delegate to the parent when lightweight, rather than skipping to the nearest heavyweight. (createImage): Added null check to prevent NPE. (dispatchEvent): Moved old event dispatching and toolkit event dispatching to dispatchEventImpl. (addComponentListener): Don't enable event. Only add listener when not null. Switch to new event dispatching only. (addFocusListener): Likewise. (addHierarchyListener): Likewise. (addHierarchyBoundsListener): Likewise. (addKeyListener): Likewise. (addMouseListener): Likewise. (addMouseMotionListener): Likewise. (addMouseWheelListener): Likewise. (addInputMethodListener): Likewise. (coalesceEvents): For mouse events coalesce them only when their modifiers are equal. For paint events coalesce the events when one contains the other, without going through complicated heuristics. (dispatchEventImpl): Moved old event dispatching and toolkit event dispatching to dispatchEventImpl. (coalescePaintEvents): Removed. (HeavyweightInLightweightListener.componentHidden): Fixed condition. * java/awt/Container.java (addImpl): Don't enable events on lightweights. (remove): Reordered operations. Don't remove any listeners. Throw ArrayIndexOutOfBoundsException when index >= ncomponents. Only removeNotify() when peer is != null. Only invalidate if not already invalid. Only fire ContainerEvent if there is an interested listener or the event is enabled. Dispatch this event directly without the event queue. (removeAll): Likewise. (paintComponents): Only paint when showing. Also paint heavyweights. Don't paint the container itself. (removeNotify): Create local variables for improved thread safety. (addNotifyContainerChildren): Don't enable events for lightweights. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/Component.java?cvsroot=classpath&r1=1.146&r2=1.147 http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/Container.java?cvsroot=classpath&r1=1.104&r2=1.105 http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8558&r2=1.8559