424425426427428429430431432433434
o.setValue(currentHour); if (now.get(Calendar.HOUR_OF_DAY) == currentHour) { o.setSelected(true); } hourSelect.addElement(o); } } else { for (int curHour = 1; curHour <= 12; curHour++)
465466467468469470471472473474475
{ o.setSelected(true); } } } hourSelect.addElement(o); } } return (hourSelect); }
503504505506507508509510511512513
o.setValue(Calendar.AM); if (now.get(Calendar.AM_PM) == Calendar.AM) { o.setSelected(true); } ampmSelect.addElement(o); o = new Option(); o.addElement("pm"); o.setValue(Calendar.PM); if (now.get(Calendar.AM_PM) == Calendar.PM)
512513514515516517518519520521522
o.setValue(Calendar.PM); if (now.get(Calendar.AM_PM) == Calendar.PM) { o.setSelected(true); } ampmSelect.addElement(o); return (ampmSelect); } /**
265266267268269270271272273274275
o.setValue(curMonth); if ((now.get(Calendar.MONTH)) == curMonth) { o.setSelected(true); } monthSelect.addElement(o); } return(monthSelect); } /**
302303304305306307308309310311312
o.setValue(currentDay); if (now.get(Calendar.DAY_OF_MONTH) == currentDay) { o.setSelected(true); } daySelect.addElement(o); } return(daySelect); } /**
344345346347348349350351352353354
o.setValue(currentYear); if (startYear == currentYear) { o.setSelected(true); } yearSelect.addElement(o); } return(yearSelect); } /**
356357358359360361362363364365366
if (nearestSecond == currentSecond) { o.setSelected(true); } secondSelect.addElement(o); } return(secondSelect); } /**
408409410411412413414415416417418
if (nearestMinute == curMinute) { o.setSelected(true); } minuteSelect.addElement(o); } return(minuteSelect); } /**
460461462463464465466467468469470
o.setValue(currentHour); if (now.get(Calendar.HOUR_OF_DAY) == currentHour) { o.setSelected(true); } hourSelect.addElement(o); } } else { for (int curHour = 1;curHour <= 12; curHour++)