Hi,

I almost finished GridBagLayout. The only thing not implemented yet is
adjustForGravity, besides that everything else should work.

The patch also includes a few small AWT fixes (some of which I
previously posted to the list).

Change Log

* java/awt/Component.java
(getPreferredSize): Call preferredSize.
(preferredSize): Moved body of getPreferredSize here.
(getMinimumSize): Call minimumSize.
(minimumSize): Moved body of getMinimumSize here.
(prepareImage): Fall back on Toolkit.prepareImage if there is no peer
(checkImage(Image,ImageObserver)): Don't call getWidth/getHeight, but
pass -1

* java/awt/Container.java
(validate): Don't validate if there is no peer.

* java/awt/GridBagLayout.java
Completed the implementation and fixed several bugs.

* java/awt/MediaTracker.java
(MediaEntry.imageUpdate): Fixed typo. & instead of | was used to combine
flags.

* java/awt/Window.java
(Window): Don't call setVisible(false). Windows are invisible by default
and calling virtual methods from constructor causes compatibility
problems (e.g. subclasses may assume that the peer already exists).

Please commit to CVS.

Regards,
Jeroen

Attachment: awt_20030723.patch
Description: awt_20030723.patch

_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to