Home > Archive > Java Help > May 2004 > How to put a component on top of all other components?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to put a component on top of all other components?
|
|
| Mickey Segal 2004-05-13, 3:32 pm |
| For adding components on top of other components, all code that I've seen
uses the method "add(Component, 0)" to add a component such as a ToolTip on
top of other components. Such "add(Component, 0)" code works everywhere
that I've tried except for the Macintosh implementation of Java 1.4
(demonstrated with a working applet and full source code at
http://Segal.org/java/AddOrder2/).
I can't find anything in the Java documentation to argue that the Macintosh
Java 1.4 behavior must be considered a bug, so I am not holding my breath
for Apple to change their implementation. Numerous GUI bugs that were known
since Apple Java 1.4 was released have not been fixed (details at
http://segal.org/macjavabugs) so arguable errors are likely to get even less
attention.
Is there some other way to place a component on top of others? I can't just
use Java 2 ToolTips; the goal is to create a Choice-like component that has
more functionality than the standard Choice, using a pull-down section that
will overlap other components while it is pulled down.
| |
| Andrew Thompson 2004-05-13, 3:32 pm |
| On Thu, 13 May 2004 14:06:54 -0400, Mickey Segal wrote:
> For adding components on top .. Macintosh implementation of Java 1.4
Are you _sure_ the Mac is using 1.4?
AFAIU, in some Mac implementations you have
to configure Java jars to use 1.4 specifically,
otherwise they default to 1.3 (shrugs - go figure)
It would be interesing to see what
'wassup' reported for the Mac in qn.
BTW - why the 3 x X-posting?
I think this might be best suited to
c.l.j.programmer for the moment,
so I'll direct f'ups there.
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
|
|
|
|
|