How to position JFrame on Screen

Hi

I am using Netbeans 5.0 for GUI. I want to specify a particular size to my JFrame and position it to the center of my screen.

How do i do that ?

I tried maximumBounds which works only when I maximize application window.

Is there any other property available in netbeans that i should use?

Thanks

Nagarajan

[351 byte] By [Nagarajan82a] at [2007-10-3 8:38:37]
# 1
frame.setLocationRelativeTo( null );
camickra at 2007-7-15 3:46:37 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks camickr It works.
Nagarajan82a at 2007-7-15 3:46:37 > top of Java-index,Desktop,Core GUI APIs...