@Override
                public void valueChanged(ListSelectionEvent e) {
                    final String fontName = ffList.getSelectedValue();
                    final int size = sizeList.getSelectedValue();
                    final String style = fsList.getSelectedValue();

                    Font font;
                    switch (style) {
                        case "Bold":
                            font = new Font(fontName, Font.BOLD, size);
                            break;
                        case "Italic":
                            font = new Font(fontName, Font.ITALIC, size);
                            break;
                        case "Bold Italic":
                            font = new Font(fontName, Font.ITALIC | Font.BOLD, size);
                            break;
                        default:
                            font = new Font(fontName, Font.PLAIN, size);
                            break;
                    }
                    previewArea.setFont(font);
                    String text = previewArea.getText();
                    try {
                        previewArea.getDocument().remove(0, previewArea.getDocument().getLength());
                        previewArea.setText(text);

                    } catch (BadLocationException ex) {
                        Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }