panel.add(new JLabel(mLocalizer.msg("time", "Time zone correction:")), cc.xy(1, 11));
mCorrectionCB = new JComboBox(new String[] { "-1:00", "-0:45", "-0:30", "-0:15", "0:00", "+0:15", "+0:30", "+0:45", "+1:00" });
mCorrectionCB.setSelectedIndex(mChannel.getTimeZoneCorrectionMinutes() / 15 + 4);
panel.add(mCorrectionCB, cc.xy(3, 11));
JTextArea txt = UiUtilities.createHelpTextArea(mLocalizer.msg("DLSTNote", ""));
// Hack because of growing JTextArea in FormLayout
txt.setMinimumSize(new Dimension(150, 20));
panel.add(txt, cc.xy(3, 13));
// time limitation
panel.add(DefaultComponentFactory.getInstance().createLabel(mLocalizer.msg("timeLimits","Time limits:")), cc.xy(1,15));
String timePattern = mLocalizer.msg("timePattern", "hh:mm a");
mStartTimeLimit = new JSpinner(new SpinnerDateModel());
mStartTimeLimit.setEditor(new JSpinner.DateEditor(mStartTimeLimit, timePattern));
setTimeDate(mStartTimeLimit, mChannel.getStartTimeLimit());
mEndTimeLimit = new JSpinner(new SpinnerDateModel());
mEndTimeLimit.setEditor(new JSpinner.DateEditor(mEndTimeLimit, timePattern));
setTimeDate(mEndTimeLimit, mChannel.getEndTimeLimit());
((JSpinner.DateEditor)mStartTimeLimit.getEditor()).getTextField().setHorizontalAlignment(SwingConstants.LEFT);
((JSpinner.DateEditor)mEndTimeLimit.getEditor()).getTextField().setHorizontalAlignment(SwingConstants.LEFT);
CaretPositionCorrector.createCorrector(((JSpinner.DateEditor)mStartTimeLimit.getEditor()).getTextField(), new char[] {':'}, -1);
CaretPositionCorrector.createCorrector(((JSpinner.DateEditor)mEndTimeLimit.getEditor()).getTextField(), new char[] {':'}, -1);
PanelBuilder timeLimitPanel = new PanelBuilder(new FormLayout("default:grow,10dlu,default:grow","default,2dlu,default"));
timeLimitPanel.addLabel(mLocalizer.msg("startTime","Start time:"), cc.xy(1,1));
timeLimitPanel.addLabel(mLocalizer.msg("endTime","End time:"), cc.xy(3,1));
timeLimitPanel.add(mStartTimeLimit, cc.xy(1,3));
timeLimitPanel.add(mEndTimeLimit, cc.xy(3,3));
panel.add(timeLimitPanel.getPanel(), cc.xy(3,15));
JTextArea txt2 = UiUtilities.createHelpTextArea(mLocalizer.msg("DLSTNote", ""));
// Hack because of growing JTextArea in FormLayout
txt2.setMinimumSize(new Dimension(150, 20));
panel.add(txt2, cc.xy(3, 17));
// buttons
ButtonBarBuilder2 builder = new ButtonBarBuilder2();
JButton defaultButton = new JButton(Localizer.getLocalization(Localizer.I18N_DEFAULT));