本文整理汇总了Java中net.sf.memoranda.util.Local.getCurrentLocale方法的典型用法代码示例。如果您正苦于以下问题:Java Local.getCurrentLocale方法的具体用法?Java Local.getCurrentLocale怎么用?Java Local.getCurrentLocale使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.memoranda.util.Local
的用法示例。
在下文中一共展示了Local.getCurrentLocale方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTime
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
/**
* @see net.sf.memoranda.Event#getTime()
*/
public Date getTime() {
//Deprecated methods
//Date d = new Date();
//d.setHours(getHour());
//d.setMinutes(getMinute());
//d.setSeconds(0);
//End deprecated methods
Date d = new Date(); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.setTime(d); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.HOUR_OF_DAY, getHour()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.MINUTE, getMinute()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.SECOND, 0); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
d = calendar.getTime(); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
return d;
}
示例2: getTime
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
/**
* @return a Date object containing the hour and minutes of this event.
*/
public Date getTime() {
//Deprecated methods
//Date d = new Date();
//d.setHours(getHour());
//d.setMinutes(getMinute());
//d.setSeconds(0);
//End deprecated methods
Date d = new Date(); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.setTime(d); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.HOUR_OF_DAY, getHour()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.MINUTE, getMinute()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.SECOND, 0); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
d = calendar.getTime(); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
return d;
}
示例3: newEventB_actionPerformed
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
void newEventB_actionPerformed(ActionEvent e, String tasktext, Date startDate, Date endDate) {
EventDialog dlg = new EventDialog(App.getFrame(), Local.getString("New event"));
Dimension frmSize = App.getFrame().getSize();
Point loc = App.getFrame().getLocation();
if (tasktext != null) {
dlg.textField.setText(tasktext);
}
dlg.startDate.getModel().setValue(startDate);
dlg.endDate.getModel().setValue(endDate);
dlg.timeSpin.getModel().setValue(startDate);
dlg.setLocation((frmSize.width - dlg.getSize().width) / 2 + loc.x, (frmSize.height - dlg.getSize().height) / 2 + loc.y);
dlg.setEventDate(startDate);
dlg.setVisible(true);
if (dlg.CANCELLED)
return;
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
calendar.setTime(((Date)dlg.timeSpin.getModel().getValue()));//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int hh = calendar.get(Calendar.HOUR_OF_DAY);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int mm = calendar.get(Calendar.MINUTE);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//int hh = ((Date) dlg.timeSpin.getModel().getValue()).getHours();
//int mm = ((Date) dlg.timeSpin.getModel().getValue()).getMinutes();
String text = dlg.textField.getText();
CalendarDate eventCalendarDate = new CalendarDate(dlg.getEventDate());
if (dlg.noRepeatRB.isSelected())
EventsManager.createEvent(eventCalendarDate, hh, mm, text);
else {
updateEvents(dlg,hh,mm,text);
}
saveEvents();
}
示例4: getBeforeTime
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
/**
*
*/
public Date getBeforeTime() {
Date d = new Date(); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.setTime(d); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.DAY_OF_YEAR, -1); // DILTDICKER EMAIL
calendar.set(Calendar.HOUR_OF_DAY, getHour()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.MINUTE, getMinute()); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
calendar.set(Calendar.SECOND, 0); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
d = calendar.getTime(); //Revision to fix deprecated methods (jcscoobyrs) 12-NOV-2003 14:26:00
return d;
}
示例5: newEventB_actionPerformed
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
void newEventB_actionPerformed(ActionEvent e, String tasktext, Date startDate, Date endDate) {
EventDialog dlg = new EventDialog(App.getFrame(), Local.getString("New event"));
Dimension frmSize = App.getFrame().getSize();
Point loc = App.getFrame().getLocation();
if (tasktext != null) {
dlg.textField.setText(tasktext);
}
dlg.startDate.getModel().setValue(startDate);
dlg.endDate.getModel().setValue(endDate);
dlg.timeSpin.getModel().setValue(startDate);
dlg.setLocation((frmSize.width - dlg.getSize().width) / 2 + loc.x, (frmSize.height - dlg.getSize().height) / 2 + loc.y);
dlg.setEventDate(startDate);
dlg.setVisible(true);
if (dlg.CANCELLED)
return;
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
calendar.setTime(((Date)dlg.timeSpin.getModel().getValue()));//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//JOSH CHANGED THIS
int hh = 12 + calendar.get(Calendar.HOUR_OF_DAY);//Fix deprecated methods to get hours
//if (hh > 12) {
// hh = hh - 12;
//}
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int mm = calendar.get(Calendar.MINUTE);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//int hh = ((Date) dlg.timeSpin.getModel().getValue()).getHours();
//int mm = ((Date) dlg.timeSpin.getModel().getValue()).getMinutes();
String text = dlg.textField.getText();
CalendarDate eventCalendarDate = new CalendarDate(dlg.getEventDate());
if (dlg.noRepeatRB.isSelected())
EventsManager.createEvent(eventCalendarDate, hh, mm, text);
else {
updateEvents(dlg,hh,mm,text);
}
saveEvents();
}
示例6: newEventB_actionPerformed
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
void newEventB_actionPerformed(ActionEvent e, String tasktext, Date startDate, Date endDate) {
EventDialog dlg = new EventDialog(App.getFrame(), Local.getString("New event"));
Dimension frmSize = App.getFrame().getSize();
Point loc = App.getFrame().getLocation();
if (tasktext != null) {
dlg.textField.setText(tasktext);
}
dlg.startDate.getModel().setValue(startDate);
dlg.endDate.getModel().setValue(endDate);
dlg.timeSpin.getModel().setValue(startDate);
dlg.setLocation((frmSize.width - dlg.getSize().width) / 2 + loc.x, (frmSize.height - dlg.getSize().height) / 2 + loc.y);
dlg.setEventDate(startDate);
dlg.setVisible(true);
if (dlg.CANCELLED)
return;
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
calendar.setTime(((Date)dlg.timeSpin.getModel().getValue()));//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int hh = calendar.get(Calendar.HOUR_OF_DAY);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int mm = calendar.get(Calendar.MINUTE);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//int hh = ((Date) dlg.timeSpin.getModel().getValue()).getHours();
//int mm = ((Date) dlg.timeSpin.getModel().getValue()).getMinutes();
String text = dlg.textField.getText();
Boolean smsSelected = dlg.selectSMS.isSelected();
CalendarDate eventCalendarDate = new CalendarDate(dlg.getEventDate());
if (dlg.noRepeatRB.isSelected())
EventsManager.createEvent(eventCalendarDate, hh, mm, text, smsSelected);
else {
updateEvents(dlg,hh,mm,text, smsSelected);
}
saveEvents();
}
示例7: editEventB_actionPerformed
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
void editEventB_actionPerformed(ActionEvent e) {
EventDialog dlg = new EventDialog(App.getFrame(), Local.getString("Event"));
net.sf.memoranda.Event ev =
(net.sf.memoranda.Event) eventsTable.getModel().getValueAt(
eventsTable.getSelectedRow(),
EventsTable.EVENT);
dlg.timeSpin.getModel().setValue(ev.getTime());
/*if (new CalendarDate(ev.getTime()).equals(CalendarDate.today()))
((SpinnerDateModel)dlg.timeSpin.getModel()).setStart(new Date());
else
((SpinnerDateModel)dlg.timeSpin.getModel()).setStart(CalendarDate.today().getDate());
((SpinnerDateModel)dlg.timeSpin.getModel()).setEnd(CalendarDate.tomorrow().getDate());*/
dlg.textField.setText(ev.getText());
int rep = ev.getRepeat();
if (rep > 0) {
dlg.startDate.getModel().setValue(ev.getStartDate().getDate());
if (rep == EventsManager.REPEAT_DAILY) {
dlg.dailyRepeatRB.setSelected(true);
dlg.dailyRepeatRB_actionPerformed(null);
dlg.daySpin.setValue(new Integer(ev.getPeriod()));
}
else if (rep == EventsManager.REPEAT_WEEKLY) {
dlg.weeklyRepeatRB.setSelected(true);
dlg.weeklyRepeatRB_actionPerformed(null);
int d = ev.getPeriod() - 1;
if(Configuration.get("FIRST_DAY_OF_WEEK").equals("mon")) {
d--;
if(d<0) d=6;
}
dlg.weekdaysCB.setSelectedIndex(d);
}
else if (rep == EventsManager.REPEAT_MONTHLY) {
dlg.monthlyRepeatRB.setSelected(true);
dlg.monthlyRepeatRB_actionPerformed(null);
dlg.dayOfMonthSpin.setValue(new Integer(ev.getPeriod()));
}
else if (rep == EventsManager.REPEAT_YEARLY) {
dlg.yearlyRepeatRB.setSelected(true);
dlg.yearlyRepeatRB_actionPerformed(null);
dlg.dayOfMonthSpin.setValue(new Integer(ev.getPeriod()));
}
if (ev.getEndDate() != null) {
dlg.endDate.getModel().setValue(ev.getEndDate().getDate());
dlg.enableEndDateCB.setSelected(true);
dlg.enableEndDateCB_actionPerformed(null);
}
if(ev.getWorkingDays()) {
dlg.workingDaysOnlyCB.setSelected(true);
}
}
Dimension frmSize = App.getFrame().getSize();
Point loc = App.getFrame().getLocation();
dlg.setLocation((frmSize.width - dlg.getSize().width) / 2 + loc.x, (frmSize.height - dlg.getSize().height) / 2 + loc.y);
dlg.setVisible(true);
if (dlg.CANCELLED)
return;
EventsManager.removeEvent(ev);
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
calendar.setTime(((Date)dlg.timeSpin.getModel().getValue()));//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int hh = calendar.get(Calendar.HOUR_OF_DAY);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int mm = calendar.get(Calendar.MINUTE);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//int hh = ((Date) dlg.timeSpin.getModel().getValue()).getHours();
//int mm = ((Date) dlg.timeSpin.getModel().getValue()).getMinutes();
String text = dlg.textField.getText();
if (dlg.noRepeatRB.isSelected())
EventsManager.createEvent(CurrentDate.get(), hh, mm, text);
else {
updateEvents(dlg,hh,mm,text);
}
saveEvents();
}
示例8: newEventB_actionPerformed
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
void newEventB_actionPerformed(ActionEvent e, String tasktext, Date startDate, Date endDate) {
EventDialog dlg = new EventDialog(App.getFrame(), Local.getString("New event"));
Dimension frmSize = App.getFrame().getSize();
Point loc = App.getFrame().getLocation();
if (tasktext != null) {
dlg.textField.setText(tasktext);
}
dlg.startDate.getModel().setValue(startDate);
dlg.endDate.getModel().setValue(endDate);
dlg.timeSpin.getModel().setValue(startDate);
dlg.durationSpin.getModel().setValue(new Date(0,0,0));
dlg.setLocation((frmSize.width - dlg.getSize().width) / 2 + loc.x, (frmSize.height - dlg.getSize().height) / 2 + loc.y);
dlg.setEventDate(startDate);
dlg.setVisible(true);
if (dlg.CANCELLED)
return;
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
calendar.setTime(((Date)dlg.timeSpin.getModel().getValue()));//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int hh = calendar.get(Calendar.HOUR_OF_DAY);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int mm = calendar.get(Calendar.MINUTE);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//int hh = ((Date) dlg.timeSpin.getModel().getValue()).getHours();
//int mm = ((Date) dlg.timeSpin.getModel().getValue()).getMinutes();
Calendar calendar2 = new GregorianCalendar(Local.getCurrentLocale());
calendar2.setTime(((Date)dlg.durationSpin.getModel().getValue()));
int hh2 = calendar2.get(Calendar.HOUR_OF_DAY);
int mm2 = calendar2.get(Calendar.MINUTE);
int dur = 0;
if(hh2>0 || mm2 >0) dur = mm2 + (hh2*60);
String text = dlg.textField.getText();
CalendarDate eventCalendarDate = new CalendarDate(dlg.getEventDate());
if (dlg.noRepeatRB.isSelected()) {
Event event = new Event.Builder()
.setDate(eventCalendarDate)
.setHour(hh)
.setMinute(mm)
.setText(text)
.setDuration(dur)
.setSendsSms(dlg.smsCB.isSelected())
.build();
EventsManager.saveEvent(event);
} else {
updateEvents(dlg,hh,mm,text,dur);
}
saveEvents();
}
示例9: editEventB_actionPerformed
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
void editEventB_actionPerformed(ActionEvent e) {
EventDialog dlg = new EventDialog(App.getFrame(), Local.getString("Event"));
net.sf.memoranda.Event ev =
(net.sf.memoranda.Event) eventsTable.getModel().getValueAt(
eventsTable.getSelectedRow(),
EventsTable.EVENT);
dlg.timeSpin.getModel().setValue(ev.getTime());
/*if (new CalendarDate(ev.getTime()).equals(CalendarDate.today()))
((SpinnerDateModel)dlg.timeSpin.getModel()).setStart(new Date());
else
((SpinnerDateModel)dlg.timeSpin.getModel()).setStart(CalendarDate.today().getDate());
((SpinnerDateModel)dlg.timeSpin.getModel()).setEnd(CalendarDate.tomorrow().getDate());*/
dlg.textField.setText(ev.getText());
int rep = ev.getRepeat();
if (rep > 0) {
dlg.startDate.getModel().setValue(ev.getStartDate().getDate());
if (rep == EventsManager.REPEAT_DAILY) {
dlg.dailyRepeatRB.setSelected(true);
dlg.dailyRepeatRB_actionPerformed(null);
dlg.daySpin.setValue(new Integer(ev.getPeriod()));
}
else if (rep == EventsManager.REPEAT_WEEKLY) {
dlg.weeklyRepeatRB.setSelected(true);
dlg.weeklyRepeatRB_actionPerformed(null);
int d = ev.getPeriod() - 1;
if(Configuration.get("FIRST_DAY_OF_WEEK").equals("mon")) {
d--;
if(d<0) d=6;
}
dlg.weekdaysCB.setSelectedIndex(d);
}
else if (rep == EventsManager.REPEAT_MONTHLY) {
dlg.monthlyRepeatRB.setSelected(true);
dlg.monthlyRepeatRB_actionPerformed(null);
dlg.dayOfMonthSpin.setValue(new Integer(ev.getPeriod()));
}
else if (rep == EventsManager.REPEAT_YEARLY) {
dlg.yearlyRepeatRB.setSelected(true);
dlg.yearlyRepeatRB_actionPerformed(null);
dlg.dayOfMonthSpin.setValue(new Integer(ev.getPeriod()));
}
if (ev.getEndDate() != null) {
dlg.endDate.getModel().setValue(ev.getEndDate().getDate());
dlg.enableEndDateCB.setSelected(true);
dlg.enableEndDateCB_actionPerformed(null);
}
if(ev.getWorkingDays()) {
dlg.workingDaysOnlyCB.setSelected(true);
}
}
Dimension frmSize = App.getFrame().getSize();
Point loc = App.getFrame().getLocation();
dlg.setLocation((frmSize.width - dlg.getSize().width) / 2 + loc.x, (frmSize.height - dlg.getSize().height) / 2 + loc.y);
dlg.setVisible(true);
if (dlg.CANCELLED)
return;
EventsManager.removeEvent(ev);
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
calendar.setTime(((Date)dlg.timeSpin.getModel().getValue()));//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//JOSH CHANGED THIS
int hh = calendar.get(Calendar.AM_PM);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int mm = calendar.get(Calendar.MINUTE);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//int hh = ((Date) dlg.timeSpin.getModel().getValue()).getHours();
//int mm = ((Date) dlg.timeSpin.getModel().getValue()).getMinutes();
String text = dlg.textField.getText();
if (dlg.noRepeatRB.isSelected())
EventsManager.createEvent(CurrentDate.get(), hh, mm, text);
else {
updateEvents(dlg,hh,mm,text);
}
saveEvents();
}
示例10: editEventB_actionPerformed
import net.sf.memoranda.util.Local; //导入方法依赖的package包/类
void editEventB_actionPerformed(ActionEvent e) {
EventDialog dlg = new EventDialog(App.getFrame(), Local.getString("Event"));
net.sf.memoranda.Event ev =
(net.sf.memoranda.Event) eventsTable.getModel().getValueAt(
eventsTable.getSelectedRow(),
EventsTable.EVENT);
dlg.timeSpin.getModel().setValue(ev.getTime());
/*if (new CalendarDate(ev.getTime()).equals(CalendarDate.today()))
((SpinnerDateModel)dlg.timeSpin.getModel()).setStart(new Date());
else
((SpinnerDateModel)dlg.timeSpin.getModel()).setStart(CalendarDate.today().getDate());
((SpinnerDateModel)dlg.timeSpin.getModel()).setEnd(CalendarDate.tomorrow().getDate());*/
dlg.textField.setText(ev.getText());
int rep = ev.getRepeat();
if (rep > 0) {
dlg.startDate.getModel().setValue(ev.getStartDate().getDate());
if (rep == EventsManager.REPEAT_DAILY) {
dlg.dailyRepeatRB.setSelected(true);
dlg.dailyRepeatRB_actionPerformed(null);
dlg.daySpin.setValue(new Integer(ev.getPeriod()));
}
else if (rep == EventsManager.REPEAT_WEEKLY) {
dlg.weeklyRepeatRB.setSelected(true);
dlg.weeklyRepeatRB_actionPerformed(null);
int d = ev.getPeriod() - 1;
if(Configuration.get("FIRST_DAY_OF_WEEK").equals("mon")) {
d--;
if(d<0) d=6;
}
dlg.weekdaysCB.setSelectedIndex(d);
}
else if (rep == EventsManager.REPEAT_MONTHLY) {
dlg.monthlyRepeatRB.setSelected(true);
dlg.monthlyRepeatRB_actionPerformed(null);
dlg.dayOfMonthSpin.setValue(new Integer(ev.getPeriod()));
}
else if (rep == EventsManager.REPEAT_YEARLY) {
dlg.yearlyRepeatRB.setSelected(true);
dlg.yearlyRepeatRB_actionPerformed(null);
dlg.dayOfMonthSpin.setValue(new Integer(ev.getPeriod()));
}
if (ev.getEndDate() != null) {
dlg.endDate.getModel().setValue(ev.getEndDate().getDate());
dlg.enableEndDateCB.setSelected(true);
dlg.enableEndDateCB_actionPerformed(null);
}
if(ev.getWorkingDays()) {
dlg.workingDaysOnlyCB.setSelected(true);
}
}
Dimension frmSize = App.getFrame().getSize();
Point loc = App.getFrame().getLocation();
dlg.setLocation((frmSize.width - dlg.getSize().width) / 2 + loc.x, (frmSize.height - dlg.getSize().height) / 2 + loc.y);
dlg.setVisible(true);
if (dlg.CANCELLED)
return;
EventsManager.removeEvent(ev);
Calendar calendar = new GregorianCalendar(Local.getCurrentLocale()); //Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
calendar.setTime(((Date)dlg.timeSpin.getModel().getValue()));//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int hh = calendar.get(Calendar.HOUR_OF_DAY);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
int mm = calendar.get(Calendar.MINUTE);//Fix deprecated methods to get hours
//by (jcscoobyrs) 14-Nov-2003 at 10:24:38 AM
//int hh = ((Date) dlg.timeSpin.getModel().getValue()).getHours();
//int mm = ((Date) dlg.timeSpin.getModel().getValue()).getMinutes();
String text = dlg.textField.getText();
if (dlg.noRepeatRB.isSelected())
EventsManager.createEvent(CurrentDate.get(), hh, mm, text);
else {
updateEvents(dlg,hh,mm,text);
}
saveEvents();
}