setSize(new Dimension(300, 200));
setSize(new Dimension(prefs.getInt("width", 300), prefs.getInt("height", 200)));
    public TilePaletteDialog(MapEditor editor, Map map) {        super(editor.getAppFrame(), DIALOG_TITLE, false);        this.editor = editor;        init();        setMap(map);        setSize(new Dimension(300, 200));        setLocationRelativeTo(getOwner());        setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);    }