/** * 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); }
private void fillWorldList() { fillWorldList(WorldDirectoryPicker.getWorldDirectory(chunky.getFrame())); }