[3759] in java-interest
Reshaping panels
daemon@ATHENA.MIT.EDU (Don Park)
Mon Nov 27 00:09:26 1995
Date: Sun, 26 Nov 1995 06:07:35 -0800
To: java-interest@java.sun.com
From: donpark@telewise.com (Don Park)
Hi,
Its 5:30 am on Sunday in midst of Thanksgiving weekend and I am not having
much fun.
Absolute positioning of components have been talked about before with the
solution being:
container.setLayout(null);
component.reshape(x, y, width, height);
container.add(component);
I expected the solution to work just fine with containers, specifically
Panels, but panels seem to act differently from non-containers. Panels
added to applets using the above solution seem to be positioned and sized
correctly as far as the panel goes but its real Windows object (oh, did I
mention I was talking about Win32 version of JDK Beta 1?) is positioned at
0,0 of the parent and sized at 100, 100 (sounds familiar, Arthur?). If I
remember correctly, Mr. "Have Fun" mentioned something about fixing a bug
involving 100 but I am not sure if it was pre-beta or what.
I have JDK B1 source also so I did a grep for SetWindowPos (many found) and
MoveWindow (none found). All but one SetWindowPos was called by Reshape
methods of implementation strategy classes (AwtXXXX). I must have had too
many beers because no matter how and where I call reshape, it does not get
through to the SetWindowPos. BTW, is 100 someone's favorite number? At
this point, I am frustrated enough to rewrite AWT rather than trying to
figure out where the spagetti sause is flowing to. Sorry if I sound sour.
Its been a tough night.
Basically, I am working on a visual development tool for Java applets but I
having a hard time getting around the bugs and greens surrounding AWT.
Help!
Sincerely not having much fun,
Don "You can call me Super but I'll have to charge you" Park
PS: Please please expand Graphics class to include full graphics ops.
PSS: Failing that, just give me XOR.
PSSS: But before that I need UPDATE REGIONS and FULL TRACKING SUPPORT!
PSSSS: Please add class storage similar to Netscape's except with public API.
PSSSSS: Did I mention I charge by the hour?
PSSSSSS: If you are tired of all this PS, please blame Dave Winer.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com