if(incasationBegin > 0)
{
int anwser = JOptionPane.showConfirmDialog(null, Config.QUESTION,"Confirm", JOptionPane.YES_NO_OPTION);
if(anwser == 1)
{
jList0.setSelectedIndex(incasationBegin);
return;
}
}
incasationBegin = jList0.getSelectedIndex();
How do I setSelectedIndex
without calling jList0ListSelectionValueChanged
action? Because when I click on option confirm popup and when I click NO, the new item is still selected. I have tried to add incasationBegin =0;
before return, but then on first click confirm popup.