CVSROOT: /cvsroot/classpath
Module name: classpath
Changes by: Roman Kennke <rabbit78> 06/06/23 11:08:28
Modified files:
javax/swing : JLayeredPane.java
. : ChangeLog
Log message:
2006-06-23 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/JLayeredPane.java
(getPosition): Moved code around to avoid unnecessary method
calls.
(setPosition): Delegate to setLayer().
(insertIndexForLayer(int,int)): Delegate to new private helper
method.
(insertIndexForLayer(Component,int,int)): New helper method
to support the use of setComponentZOrder() which doesn't remove
the component and thus the insertIndexForLayer must ignore
the component to be moved to get the index right.
(setLayer): Added check to prevent unnecessary execution of
method body. Changed to update the component order here.
Added repaint() to make sure that the update becomes visible.
(addImpl): Call setLayer() only when a constraint has been
specified.
Validate and repaint the JLayeredPane.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JLayeredPane.java?cvsroot=classpath&r1=1.46&r2=1.47
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7917&r2=1.7918