private void addListeners() {

        jButton.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                File file = FileUtil.selectFileForRead(SelectPanel.this);
                ControlData.logFile = file;

                GCViewerFrame.gcViewer.repaintGCViewer();
            }
        });

        timePrecision.addItemListener(new ItemListener() {

            @Override
            public void itemStateChanged(ItemEvent e) {
                ControlData.timePrecision = (TimePrecision) (timePrecision
                        .getSelectedItem());
                GCViewerFrame.gcViewer.repaintGCViewer();
            }
        });

        submit.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {

                String startDateStr = startDate.getText().trim();
                if (DateFormat.equals(startDateStr)) {
                    ControlData.startDate = null;
                } else {
                    ControlData.startDate = DateUtil.parseDate(startDateStr);
                }

                String endDateStr = endDate.getText().trim();
                if (DateFormat.equals(endDateStr)) {
                    ControlData.endDate = null;
                } else {
                    ControlData.endDate = DateUtil.parseDate(endDateStr);
                }

                GCViewerFrame.gcViewer.repaintGCViewer();
            }
        });

    }