private void openDD() {
   FileOpenDialog dialog = new FileOpenDialog(frame);
   dialog.setVisible(true);
   final File file = dialog.getFile();
   dialog.dispose();
   try {
     DataDictionary d = new DataDictionary(file.getAbsolutePath());
     dataDictionary.setDataDictionary(d);
     currentModel.viewAll();
     //            TableColumnModel columnModel = currentTable.getColumnModel();
     //            int columnCount = columnModel.getColumnCount();
     //            for (int i = 0; i < columnCount; i++) {
     //
     // columnModel.getColumn(i).setHeaderValue(columnModel.getColumn(i).getHeaderValue());
     //            }
     //            currentModel.fireTableChanged(new TableModelEvent(currentModel, 0,
     // currentModel.getRowCount()));
     //            currentTable.repaint();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
  private void openFile() {
    FileOpenDialog dialog = new FileOpenDialog(frame);
    dialog.setVisible(true);
    final File file = dialog.getFile();
    final Date startTime = dialog.getStartTime();
    final Date endTime = dialog.getEndTime();
    dialog.dispose();

    boolean traceRunning = tracer.isRunning();
    if (traceRunning) tracer.stop();

    if (file != null) {
      try {
        LogFile logFile = new LogFile(file, dataDictionary);
        ArrayList messages = logFile.parseMessages(progressBar, startTime, endTime);
        currentModel = new MessagesTableModel(dataDictionary, logFile);
        currentTable = new MessagesTable(currentModel);
        currentTable.addListSelectionListener(this);
        currentTable.addMouseListener(this);
        JScrollPane component = new JScrollPane(currentTable);
        upperTabbedPane.add(file.getName(), component);
        upperTabbedPane.setSelectedComponent(component);
        currentModel.setMessages(messages, progressBar);
        menuBar.reset();
        menuBar.setFileOpen(true);
      } catch (CancelException e) {
        closeFile();
      } catch (FileNotFoundException e) {
        System.out.println(e);
      } catch (IOException e) {
        System.out.println(e);
      }
    }

    if (traceRunning) tracer.start();
  }