Basically this is the problem, I pull some data set from the database, and populate combobox with it.
So like you can see in this shoot http://prntscr.com/7bscob. Min and max jspinner values SHOULD depend on comboBox selected item.
So what I've tried to do is to set a minimal value dynamically, but it sends an IllegalArgumentException
at the line where I did that.
for(int i=0; i<turniri.size(); i++)
{
if (turniri.get(i).getNaziv().equals(selectedTurnir))
{
t=turniri.get(i).getId();
long l = turniri.get(i).getDatumPocetka().getTime();
spinner.setModel(new SpinnerDateModel(new Date(1431986400000L), new Date(l), new Date(1433109600000L), Calendar.DAY_OF_YEAR));
}
}