hasPreview.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jtp
.putClientProperty(
LafWidget.TABBED_PANE_PREVIEW_PAINTER,
hasPreview.isSelected() ? new DefaultTabPreviewPainter()
: null);
jtp.revalidate();
jtp.repaint();
}
});