private JPanel constructFilterPanel() {
JPanel retPanel = new JPanel(false);
retPanel.setLayout(new BoxLayout(retPanel, BoxLayout.X_AXIS));
retPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
DropDownButton button;
JLabel label;
retPanel.add(Box.createHorizontalGlue());
addTimeFormatControl(retPanel);
retPanel.add(new JLabel(" "));
label = new JLabel(getResource("Filter.Label") + " ");
retPanel.add(label);
retPanel.add(Box.createHorizontalStrut(5));
addScrollButton(retPanel, "Filter.Scroll_Backward",
"scrollFilterBackward");
fromDate = addDateField(retPanel, "Filter.From");
toDate = addDateField(retPanel, "Filter.To");
addScrollButton(retPanel, "Filter.Scroll_Forward",
"scrollFilterForward");
button = new DropDownButton(getResource("Filter.Apply"));
button.setRunFirstMenuOption(false);
button.getButton().addActionListener(
createActionListener("applyFilter"));
JMenu menu = button.getMenu();
addFilterMenuItem(menu, "Filter.Today", "filterToday");
addFilterMenuItem(menu, "Filter.Week", "filterThisWeek");
menu.add(createWeekFilterStartDaySubmenu());
addFilterMenuItem(menu, "Filter.Month", "filterThisMonth");
menu.addSeparator();