.setEnabled(examplesList.getSelectedIndex() > 0);
.setEnabled(examplesList.getSelectedIndex() > -1);
            public void valueChanged(ListSelectionEvent e) {                applyExampleButton                        .setEnabled(examplesList.getSelectedIndex() > 0);            }