swt calendar widget
jdk 1.8+
maven-3.2.3+
swt 4.2.1+
#windows
$mvn clean install -Pwin_x86_64 -Dmaven.test.skip=true
#mac
$mvn clean install -Pmac_x86_64 -Dmaven.test.skip=true
#linux
$mvn clean install -Plinux_x86_64 -Dmaven.test.skip=true
XCalendar x = new XCalendar(text.getParent(), SWT.DATE);
x.setup(v -> true, true);
x.show(text.getParent(), text.getBounds());
XCalendar x = new XCalendar(text.getParent(), SWT.LONG);
x.setup(v -> true, true);
x.show(text.getParent(), text.getBounds());
XCalendar x = new XCalendar(text.getParent(), SWT.SHORT);
x.setup(v -> true, true);
x.show(text.getParent(), text.getBounds());
XCalendar x = new XCalendar(text.getParent(), SWT.MEDIUM);
x.setup(v -> true, true);
x.show(text.getParent(), text.getBounds());
XCalendar x = new XCalendar(text.getParent(), SWT.TIME);
x.setup(v -> true, true);
x.show(text.getParent(), text.getBounds());
x.setup(v -> v.after(new Date()), true);
XCalendar x = new XCalendar(text.getParent(), SWT.MEDIUM);
x.setup(v -> true, true);
x.addXCalendarEventListener(new XCalendarEventListener() {
@Override
public void onEvent(XCalendarEvent event) {
if (!(event instanceof XCalendarSelectEvent)) return;
XCalendarSelectEvent s = (XCalendarSelectEvent) event;
// your code goes here.
}
});
x.show(text.getParent(), text.getBounds());