public void updateList() {
        if (this.listModel == null) {
            throw new IllegalStateException();
        }

        this.listModel.clear();
        this.previewList.clear();
        this.repaint();

        List<SkinPreviewVO> tmp = Main.getAvailableSkins();
        for (SkinPreviewVO element : tmp) {
            if (element != null) {
                this.listModel.addElement(element.getName());
                this.previewList.add(element);
            }
        }

        if (QuickChooser.this.previewList.size() == 0) {
            QuickChooser.this.btnApplyButton.setEnabled(false);
            QuickChooser.this.btnDeleteButton.setEnabled(false);
            QuickChooser.this.btnEditButton.setEnabled(false);

        } else {
            QuickChooser.this.btnApplyButton.setEnabled(true);
            QuickChooser.this.btnDeleteButton.setEnabled(true);
            QuickChooser.this.btnEditButton.setEnabled(true);

            QuickChooser.this.list.setSelectedIndex(QuickChooser.this.selectedIndex);
        }
    }