Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #4867

Re: component coordinate offsets

From markspace <-@.>
Newsgroups comp.lang.java.gui
Subject Re: component coordinate offsets
Date 2011-12-24 07:49 -0800
Organization A noiseless patient Spider
Message-ID <jd4s9r$nmr$1@dont-email.me> (permalink)
References <Layout-20111224151721@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 12/24/2011 6:28 AM, Stefan Ram wrote:
>  Can they get the offset of their
>    coordinate system relatively to the container's coordinate
>    system so as to convert the coordinate?
>


I'm not sure what you are trying to do exactly, but the convertPoint 
method in SwingUtilities looks generally useful.

<http://docs.oracle.com/javase/7/docs/api/javax/swing/SwingUtilities.html#convertPoint%28java.awt.Component,%20int,%20int,%20java.awt.Component%29>

Back to comp.lang.java.gui | Previous | Next | Find similar


Thread

Re: component coordinate offsets markspace <-@.> - 2011-12-24 07:49 -0800

csiph-web