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
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL