if (option == JFileChooser.APPROVE_OPTION) {
File[] files = chooser.getSelectedFiles();
prefs.put("openFile", files[0].getAbsolutePath());
DebugTimespend.start("open file:run");
PcapHandler handler = new PcapHandler();
handler.addListener(new StatisticsListener(paintPanel, StatisticsControlPanel.this));
handler.addFiles(files);
handler.run();
DebugTimespend.end("open file:run");
initButton();
}