Hi,
I create a class called DateFields.java, to get an array of
three JComboBox's for dd,mm,yyy and where the dd or mm increses,
decreses to the selected month, day. Also if the selcted year is
a leap the mm,dd is set to it. it's a 250 lines of code.
I also provide a method called "setCurrentDate()" where the
comboboxs are automaticley set to the current date and I used
this line of code::
java.sql.Date currentDate = new java.sql.Date( System.currentTimeMillis() );
and it works,
and it could work for comparing to the database date.
I think you better use this rather calenders or whatever,
because it's getting very complecated.
If you have any question you better E-mail me at:
jkornbluh@netzero.com because I wont visit this site to soon, I was just here because
I was searching on java printing stuff, I have a problem printing
a JTable while trying to tranlate it lower in the page,
if you (of anybody) can help me it will be a nice trade of.
Thanks
Joel Kornbluh
from Program IT team.
jkornbluh@netzero.com