hi guys.. i need some help on swing.. when my application starts i ask the user to enter hos choice on connection (local/remote) through a dialog box, but this dialog box comes at the left-top corner of my application. I want this dialog to come at the center of the screen . can anyone tell me what to do for that..
SCJP, SCJD.
Horst Dehmer
Greenhorn
Joined: Mar 29, 2002
Posts: 10
posted
0
Hi Sid, Try to use setBounds(Rectangle) from JDialog. Horst.
Siddharth Mehrotra
Ranch Hand
Joined: Aug 21, 2001
Posts: 185
posted
0
Originally posted by Horst Dehmer: Hi Sid, Try to use setBounds(Rectangle) from JDialog. Horst.
thanls a lot.. u just improved a lot of asthetic value to my application..
Horst Dehmer
Greenhorn
Joined: Mar 29, 2002
Posts: 10
posted
0
Sai Prasad
Ranch Hand
Joined: Feb 25, 2002
Posts: 560
posted
0
You can also try setLocationRelativeTo(null);
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.