[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Working GridBagLayout and a few other small AWT patches
From: |
Jeroen Frijters |
Subject: |
Working GridBagLayout and a few other small AWT patches |
Date: |
Wed, 23 Jul 2003 14:47:14 +0200 |
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
awt_20030723.patch
Description: awt_20030723.patch
- Working GridBagLayout and a few other small AWT patches,
Jeroen Frijters <=