JFrame possition

how can I set the possition of a JFrame?
[47 byte] By [breakbonea] at [2007-11-27 2:18:38]
# 1
setLocation() inherited from Component.
PhHeina at 2007-7-12 2:18:20 > top of Java-index,Java Essentials,New To Java...
# 2
thanks
breakbonea at 2007-7-12 2:18:20 > top of Java-index,Java Essentials,New To Java...
# 3

Check out the documentation for setLocation, setLocationByPlatform and setLocationRelativeTo.

I am only new to Java, but got this information quite simply from the popup Help in NetBeans.

A useful one is setLocationRelativeTo(null), which positions the window in the centre of the screen, if you want that.

To position at a particular point on the screen you can use setLocation(Point p) or setLocation(int x, int y).

JeffG1a at 2007-7-12 2:18:20 > top of Java-index,Java Essentials,New To Java...
# 4
> how can I set the possition of a JFrame?If you had read the API documentation for this class you would've noticed the setBounds() method.kind regards,Jos
JosAHa at 2007-7-12 2:18:20 > top of Java-index,Java Essentials,New To Java...
# 5
ok okthank you all! :p
breakbonea at 2007-7-12 2:18:20 > top of Java-index,Java Essentials,New To Java...