Beispiel #1
0
 private void createUserDialog() {
   ud = new UserDialog(this, true);
   int userInputWidth = ud.getWidth();
   int userInputHeight = ud.getHeight();
   int formInputWidth = this.getWidth();
   int formInputHeight = this.getHeight();
   int xposition = (formInputWidth - userInputWidth) / 2;
   int yposition = (formInputHeight - userInputHeight) / 2;
   Point p = new Point(xposition, yposition);
   ud.setLocation(p);
 }