java - Getting a JFrame's actual current location -


I'm trying to create a Jeffram (kid) that slides down from one side of Jeffam to another Does. The goal occurs when the child goes around during the child's chase, and the size change responds to events, it is somewhat related to it.

I have tried to use a component writer, but with this method, the parents can transfer the child only once after stopping, while I would like the child to be the parent As dragged, dragged around the screen.

I tried another option that was to start a new refresher thread, which was continually updated using the getLocation () or getLocationOnScreen () of the child's space, but the interval component listener's Was similar.

Is there any way to get a realistic position of a Jafr in the middle of the drag? Or if not, is there any way to slip around the frame to get the effect of a sheet below? >

You should use the MouseDrag ged (Mouse Event E) method of the mouse-embedded class as you pull your main window all around, you will get many of these mouse-drawn events - move each window to that position and move to the other window Move which is relative to the location of the main window.

If you 'interval' or until the main window closes, try to force the swing so that each other's window reposition and / or a swinglets. ..) Paint it again after changing your position within the block:

  SwingUtilities.invokeLater {New Runnabel} {@Override Public Running Zero () {// Your Logic Here}}) ;  

I know if it helps.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -