Example #1
0
  /**
   * Constructor
   *
   * @param chunky
   */
  public WorldSelector(Chunky chunky) {
    super(chunky.getFrame());
    this.chunky = chunky;

    setTitle(Messages.getString("WorldSelector.0")); // $NON-NLS-1$

    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    setModalityType(Dialog.ModalityType.MODELESS);

    initComponents();
    fillWorldList();

    pack();
    setLocationRelativeTo(chunky.getFrame());
    setVisible(true);
  }
Example #2
0
 private void fillWorldList() {
   fillWorldList(WorldDirectoryPicker.getWorldDirectory(chunky.getFrame()));
 }