[3593] in java-interest
Possible Bug in GridBagLayout
daemon@ATHENA.MIT.EDU (Pradeep Badri)
Thu Nov 16 23:02:25 1995
From: Pradeep Badri <pbadri@cisco.com>
To: java-interest@java.sun.com
Date: Thu, 16 Nov 95 17:32:13 PST
Cc: pbadri@cisco.com (Pradeep Badri)
Hi,
Once i pack, resize and show a frame (whose layoutManager is GradBagLayout)
the window appears with all the components placed as
desired. Great !!
Now, I construct another panel (which uses GridLayout)
and then add it to the frame displayed above, with GridConstraints
set properly, and do a pack() and resize(preferredSize()).
The new panel just created has the components placed in proper order
BUT some of the contents of each individual components are MISSING.
However if the new panel which i created above is put into another
frame, the new window shows up all the components properly.
INTERESTINGLY, if i add all components and the new panel and
then do a pack, resize and show, the window shows up
with all components correctly.
Has anyone noticed this. Is this a bug or am i doing something wrong.
There seems to be a layout problem when you add components dynamically.
thanks,
-pb.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com