GridLayout ga = new GridLayout(1, 7);
mainTimeTablePanel.setLayout(ga);
SimpleRectangleEngine sre = new SimpleRectangleEngine();
DayOfWeek dayOfWeek = DayOfWeek.createEurope(0);
TimeOffset shiftBegin = swl.getTimeBegin(dayOfWeek);
TimeOffset shiftEnd = swl.getTimeEnd(dayOfWeek);
ruler.setShiftBegin(shiftBegin.getMilliseconds());
ruler.setShiftEnd(shiftEnd.getMilliseconds());
TimeScaler scaler = new TimeScalerTraditional(
shiftBegin.getHours(), shiftEnd.getHours(), 0.25f);
scaler.setMinHourHeight(25);
ruler.setScaler(scaler);
ruler.setFont(rulerLabel.getFont());
for (int i = 0; i < tt.length; i++) {
JPanel panel = new JPanel();
mainTimeTablePanel.add(panel);
BorderLayout bl = new BorderLayout();
panel.setLayout(bl);
//bl.setVgap(10);
JLabel label = new JLabel(TimeLocal.WEEK[i]);
label.setHorizontalAlignment(JLabel.CENTER);
label.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
panel.add(label, BorderLayout.NORTH);
DayOfWeek dof = DayOfWeek.createEurope(i);
TimeOffset dayShiftBegin = swl.getTimeBegin(dof);
TimeOffset dayShiftEnd = swl.getTimeEnd(dof);
tt[i] = new JTimeTable(new Day(2007, 0, i + 1), sre, scaler);
tt[i].setEnabled(false);