513514515516517518519520521522523
o.setValue(Calendar.PM); if (now.get(Calendar.AM_PM) == Calendar.PM) { o.setSelected(true); } ampmSelect.addElement(o); return (ampmSelect); } /**
355356357358359360361362363364365
if (nearestSecond == currentSecond) { o.setSelected(true); } secondSelect.addElement(o); } return (secondSelect); } /**
407408409410411412413414415416417
if (nearestMinute == curMinute) { o.setSelected(true); } minuteSelect.addElement(o); } return (minuteSelect); } /**
459460461462463464465466467468469
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++)
500501502503504505506507508509510
{ o.setSelected(true); } } } hourSelect.addElement(o); } } return (hourSelect); }
538539540541542543544545546547548
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)
547548549550551552553554555556557
265266267268269270271272273274275
o.setValue(curMonth); if ((now.get(Calendar.MONTH)) == curMonth) { o.setSelected(true); } monthSelect.addElement(o); } return (monthSelect); } /**
301302303304305306307308309310311
o.setValue(currentDay); if (now.get(Calendar.DAY_OF_MONTH) == currentDay) { o.setSelected(true); } daySelect.addElement(o); } return (daySelect); } /**
360361362363364365366367368369370
o.setValue(currentYear); if (currentYear == selectedYear) { o.setSelected(true); } yearSelect.addElement(o); } return (yearSelect); } /**