bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/24360] New: Frame.getX() and getY() should report actual on-scr


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug awt/24360] New: Frame.getX() and getY() should report actual on-screen position
Date: 14 Oct 2005 08:37:25 -0000

java.awt.Frame.getX() and getY() should return the actual on-screen position
of the Frame. That is, those values must be updated when the window is moved
by the user or by the window-manager (e.g. twm with autoplacement on).
I suspect that the problem also affect Window and Dialog, but I didn't 
test that (yet).

At least on my system (tested with four windowmanagers), classpath cvs 
(2005.10.13) always returns the value from the last setLocation(x,y) call,
and the default value of (0,0) when setLocation() has never been called.
The values are NOT updated when the window is moved by the user.

Run attached testcase and click the button to see the values reported by
getX()/getY() and getLocationOnScreen(). The reference implementation updates
the getX()/getY() values when the window is moved (or resized), while
classpath does not.


-- 
           Summary: Frame.getX() and getY() should report actual on-screen
                    position
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24360





reply via email to

[Prev in Thread] Current Thread [Next in Thread]