[4719] in java-interest
Re: java-interest-digest V1 #43
daemon@ATHENA.MIT.EDU (Andruid Kerne)
Thu Jan 11 16:06:16 1996
Date: Thu, 11 Jan 96 13:22:44 EST
From: andruid@SLINKY.CS.NYU.EDU (Andruid Kerne)
To: java-interest@java.sun.com
In-Reply-To: <199601110212.SAA14577@java.sun.com> (owner-java-interest-digest@java.sun.com)
>>>
I'd like to include a fixed-size Canvas on a pop-up window that has
some other components as well.
I've created a subclass of Canvas that I've attempted to make fixed-size by
having the constructor do a resize(W, H) and specializing the preferredSize()
and minimumSize() methods to return (W, H), where WxH is my desired fixed
size.
When I pack the canvas into either a BorderLayout or a GridLayout, however,
the reshape() method is called on my canvas and resizes it to a different
size. So it appears that preferredSize() and minimumSize() are not being
called or are being ignored, which is troubling.
How can this resizing/reshaping be prevented, so that my canvas stays the WxH
size I want it, within its parent frame?
Note that this may be a bug in the Windows95 implementation, as it does not
get resized when run via appletviewer or Netscape 2.0b4 under Solaris on a
Sun, but does when run under Netscape 2.0b4 under Win95 (was not able to test
via appletviewer under Win95).
>>>
its not Windows specific!!!
its not just limited to inside a Frame, either.
i posted 3 times about this behaviour under Solaris, about 8 weeks
ago. i dont recall that our hosts responded.
Perhaps this time we'll get an acknowledgement of a bug, or a need for
inquiry, at least, and an estimated timetable for a fix.
This is critical geometry managemment stuff, which leaves the AWT
seriously impaired, and not quite ready for prime time.
--
Regards,
Andruid Kerne
NYU Media Research Laboratory
--and also--
Creative Media Cauldron
http://c4dm.nyu.edu/andruid/
The distinctions between artists and engineers -- between content
developers and programmers -- are entirely artificial.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com