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 / September 2003

Tip: Looking for answers? Try searching our database.

getLocation

Thread view: 
Wolfgang Unger - 08 Sep 2003 18:46 GMT
Hi,
im writing a Java Bean which opens a small frame (not
only this, but here comes my problem).
the frame should be placed exactly under a label.
first i tried to get the location for the frame by
this.getX (+ ... .width) and this.getY.
This is fine, but don't take care for the location
of the container, in which the bean is placed.
So I altered the construcor to bean(Component c)
to get also c.getX and c.getY.
But this will only work, if the bean is placed directly in a frame.
The point is:
I cannot kow, in how many panels (panels in panels or frames)
the bean will find itself.
Is there a method to get the Screen x and y values or
some like this?
If anyone has a idea, that can help me out I would be grateful.
Thanks Wolfgang
Christian Kaufhold - 08 Sep 2003 23:24 GMT
Hello!

> I cannot kow, in how many panels (panels in panels or frames)
> the bean will find itself.
> Is there a method to get the Screen x and y values or
> some like this?

getLocationOnScreen

Christian


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.