Can someone please tell me if there is a way to get the position of a JFrame and then set a new one? If you could tell me, I would greatly apreciate it.
the getBounds() method and the setBounds( int, int, int, int ) method.
Thanks for your help. Would you mind telling me what getBounds returns? and also, if you have the time, how to set it pu? I'm having a little trouble. Thanks in advanced.
setBounds( int x, int y, int width, int height )
where x is the number of pixels from the left side of the screen; y is the number of pixels from the top of the screen; width is how wide the frame will be, and height is how tall it will be.
returns a Rectangle object. A rectangle has a x, y, width, and height attribute that relate directly to the parameters I described above.
just to give you this URL, it's will help you for more informations about JFrame
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center