Exemplo n.º 1
0
  private void showParent() {

    parent = new TestDialog((Frame) null);
    parent.setTitle("Parent");
    parent.setLocation(50, 50);
    parent.setVisible(true);
  }
  private void createGUI() {

    parent = new CustomFrame();
    parent.setTitle("Parent");
    parent.setLocation(50, 50);

    dialog = new CustomDialog(parent);
    dialog.setTitle("Dialog");
    dialog.setModalityType((Dialog.ModalityType) null);
    dialog.setLocation(250, 50);

    frame = new TestFrame();
    frame.setTitle("Frame");
    frame.setLocation(50, 250);

    window = new TestWindow(frame);
    window.setLocation(250, 250);

    parent.setVisible(true);
  }