void saveProperty() {
    // JpcapDumper.JDProperty.setProperty("WinWidth",String.valueOf(getBounds().width));
    // JpcapDumper.JDProperty.setProperty("WinHeight",String.valueOf(getBounds().height));
    JpcapDumper.preferences.put("WinWidth", String.valueOf(view.getBounds().width));
    JpcapDumper.preferences.put("WinHeight", String.valueOf(view.getBounds().height));
    JpcapDumper.preferences.put("WinX", String.valueOf(view.getBounds().x));
    JpcapDumper.preferences.put("WinY", String.valueOf(view.getBounds().y));

    JpcapDumper.saveProperty();
  }
  @Override
  public void actionPerformed(ActionEvent evt) {
    String cmd = evt.getActionCommand();

    if (cmd.equals("Open")) {
      captor.loadPacketsFromFile();
    } else if (cmd.equals("Save")) {
      captor.saveToFile();
    } else if (cmd.equals("NewWin")) {
      JpcapDumper.openNewWindow();
    } else if (cmd.equals("Exit")) {
      saveProperty();
      System.exit(0);
    } else if (cmd.equals("Start")) {
      captor.capturePacketsFromDevice();
    } else if (cmd.equals("Stop")) {
      captor.stopCapture();
    } else if (cmd.startsWith("summary")) {
      captor.addCumulativeStatFrame(new PacketStat());
    } else if (cmd.startsWith("networkprotocolstat")) {
      captor.addCumulativeStatFrame(new ApplicationProtocolStat());
    }
  }