Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2004

Tip: Looking for answers? Try searching our database.

How to put a component on top of all other components?

Thread view: 
Mickey Segal - 13 May 2004 19:06 GMT
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 - 13 May 2004 19:18 GMT
> 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.

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Andrew Thompson - 13 May 2004 19:46 GMT
<apologies for bodgy attributions>
> 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/).

>> Are you _sure_ the Mac is using 1.4?
>
[quoted text clipped - 3 lines]
> http://segal.org/java/configuration/ (non-Safari browsers use the older
> 3.3.3; i.e. Java 1.3).

....
> 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
[quoted text clipped - 7 lines]
> more functionality than the standard Choice, using a pull-down section that
> will overlap other components while it is pulled down.

>> BTW - why the 3 x X-posting?
>
> Sorry.  I almost always post just to c.l.j.programmer but this is a very
> GUI-specific issue so it was unclear what the best choice should be.

OK well, if I'm wrong about the version,
it might pay to reinclude c.l.j.gui,
cannot see a reason for c.l.j.help though,
we would just confuse the posters there!
Liz - 13 May 2004 20:33 GMT
((JDialog)p3).toFront();

> <apologies for bodgy attributions>
> > For adding components on top of other components, all code that I've seen
[quoted text clipped - 34 lines]
> cannot see a reason for c.l.j.help though,
> we would just confuse the posters there!
Mickey Segal - 13 May 2004 20:55 GMT
> ((JDialog)p3).toFront();

Using Java 2 would cut out a majority of our users in order to satisfy the
small number who use Java 1.4 on the Macintosh.  Is there any Java 1.1 way
of doing this?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.