Results 1 to 4 of 4
Thread: Getting window position
- 11-22-2010, 09:17 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 4
- Rep Power
- 0
- 11-22-2010, 09:52 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,716
- Rep Power
- 18
Check out the java.awt.Component API docs for a method that gets the location of the component in screen coordinates. And java.awt.window for a method to set location relative to another component.
-----------------------------
There is a Swing/AWT forum on this site that is the place to get the most knowledgeable help. (But don't repost or things will get confusing.)
- 11-22-2010, 10:37 PM #3
Member
- Join Date
- Nov 2010
- Posts
- 4
- Rep Power
- 0
Can i get a componentListener on the parent frame, to check if its moved, and get the new coordinates? with something similar to getX()? But what?
-
The API linked to above has several methods that will help you, most containing getLocation as part of the method name...
Similar Threads
-
Need to pass a value from a parent window to a pop up or child window
By blackpanther in forum Advanced JavaReplies: 4Last Post: 01-10-2010, 08:48 AM -
change url in parent window from child window
By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-09-2009, 01:17 PM -
how can i move one frame window to another window
By santhosh_el in forum AWT / SwingReplies: 8Last Post: 06-10-2009, 04:36 PM -
get position in string from caret position
By helloworld111 in forum AWT / SwingReplies: 5Last Post: 02-19-2009, 02:36 AM -
Help with position in java
By fernando in forum New To JavaReplies: 1Last Post: 07-31-2007, 08:54 PM
Bookmarks