-
JFrames
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.
-Hatem
-
the getBounds() method and the setBounds( int, int, int, int ) method.
-gc
-
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.
-Hatem
-
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.
getBounds()
returns a Rectangle object. A rectangle has a x, y, width, and height attribute that relate directly to the parameters I described above.
-
hello,
just to give you this URL, it's will help you for more informations about JFrame
http://java.sun.com/j2se/1.4.1/docs/...ng/JFrame.html
rania +
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|