@Override
protected Object doInBackground() {
if (!service) {
service = true;
fileServer = new PasHttpFileServer(logHandler, importFoler.getText(), Integer.parseInt(portTextField.getText()), jComboBox2.getSelectedItem().toString());
fileServer.start();
} else {
JOptionPane.showMessageDialog(Server.getApplication().getMainFrame(), "服务已开启。");
}
return null;