@Override
public void run() {
JFrame frame = new JFrame("TimeFinder Planner");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
CalendarSettings settings = new CalendarSettings();
// set 1/4h as one timeslot, now even half of an hour will be displayed
settings.setMillisPerTimeslot(15 * 60 * 1000L);
settings.setTimeslotsPerDay(4 * 8);
settings.setStartDate(new DateTime(2009, 4, 6, 8, 0, 0, 0));
TimeFinderPlanner planner = new TimeFinderPlanner(settings);
// monday
planner.addInterval(new IntervalLongImpl("Interval 1", 2009, 4, 6, 8, 30, 60));
planner.addInterval(new IntervalLongImpl("Interval 2", 2009, 4, 6, 9, 0, 60));