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.
jList0.setSelectedIndex(incasationBegin);this the actionjList0ListSelectionValueChangedis called, and I dont want that, is it possible ??valueChangedis triggered whenever selection/deselection is done. So, not wanting this to happen seems very unnatural. Anyway, a little bit of browsing landed me the following link - stackoverflow.com/questions/3092834/…