I presume Ada is referring to the setLocation method of JComponent - this will not work with most layout managers. The default LayoutManager of the JDialog content pane is BorderLayout - google this...