public void stateChanged(ChangeEvent e) {
    JScrollPane scrollPane = ((JScrollPane) upperTabbedPane.getSelectedComponent());
    frame.fileLoaded(scrollPane != null);
    if (scrollPane == null) return;

    currentTable = (MessagesTable) scrollPane.getViewport().getView();
    currentModel = (MessagesTableModel) currentTable.getModel();
    menuBar.setSelectedFilter(currentModel.getFilterType());
  }
 private void traceFile() {
   int count = upperTabbedPane.getComponentCount();
   for (int i = 0; i < count; ++i) {
     JScrollPane scrollPane = ((JScrollPane) upperTabbedPane.getComponent(i));
     MessagesTable table = (MessagesTable) scrollPane.getViewport().getView();
     MessagesTableModel model = (MessagesTableModel) table.getModel();
     LogFile logFile = model.getLogFile();
     if (logFile == null) continue;
     try {
       ArrayList messages = logFile.parseNewMessages(null);
       model.addMessages(messages, null);
     } catch (IOException e) {
     } catch (CancelException e) {
     }
   }
 }