Method setLocationRelativeTo(Component c)
Return type: void
Member of: java.awt.Window
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 editor.setLocationRelativeTo(this);
2 popres.setLocationRelativeTo(this);
3 hd.setLocationRelativeTo(this);
4 prefs.setLocationRelativeTo(this);
5 dlg.setLocationRelativeTo(owner);
6 setLocationRelativeTo(parent);
7 connectDialog.setLocationRelativeTo(null);
8 setLocationRelativeTo(parent);
9 setLocationRelativeTo(parentFrame);
10 setLocationRelativeTo(null); // centers it...
11 this.setLocationRelativeTo(c);
12 popup.setLocationRelativeTo(widget);
13 parentDialog.setLocationRelativeTo(parentDialog.getOwner());
14 sessionPanel.setLocationRelativeTo(parentFrame);
15 m_dialog.setLocationRelativeTo(m_frame);
16 dialog.setLocationRelativeTo( frame);
17 jdialog.setLocationRelativeTo(frame);
18 dialog.setLocationRelativeTo(owner);
19 _dialog.setLocationRelativeTo(parent);
20 d.setLocationRelativeTo( _backPanel );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.