Sunday, September 7, 2014

How to put a number with loop into checkbox


Hey guys,

I want all years between 1900 and 2014 into a cbx.

i tried this but it doesn't work



Java Code:



int year=1900;
while(year<2014)
{
cbxYear.addItem(year + 1);
year = year + 1;
}

Thank you in advance

Oh i found the mistake i had wrote the code into the button :D :)



No comments:

Post a Comment