public Object getPropertyValue() { GregorianCalendar result = new GregorianCalendar(); result.setTimeZone(timezone); result.set(Calendar.YEAR, year.getNumber().intValue()); int mi = 0; String ms = month.getValue().toString(); for (int i = 0; i < MONTH_STRINGS.length; i++) { if (MONTH_STRINGS[i].equals(ms)) { mi = i; break; } } result.set(Calendar.MONTH, mi); result.set(Calendar.DATE, day.getNumber().intValue()); result.set(Calendar.HOUR_OF_DAY, hour.getNumber().intValue()); result.set(Calendar.MINUTE, min.getNumber().intValue()); result.set(Calendar.SECOND, sec.getNumber().intValue()); return result; }
public void actionPerformed(ActionEvent evt) { name = (String) text.getValue(); }
public void actionPerformed(ActionEvent evt) { pc = (String) modelA.getValue(); turns = spin.getNumber().intValue(); }