Package logic

Examples of logic.Server


        try {
            String serverIpPort = SettingsPanelGeneralTextFieldServer.getText();
            verifyServerInput(serverIpPort);
            String ip = serverIpPort.split(":")[0];
            int port = Integer.parseInt(serverIpPort.split(":")[1]);
            atmcModel.addServer(new Server(ip, port));
        } catch (NumberFormatException e) {
            atmClient.addStatusMessage("Invalid Server Input");
        } catch (IllegalArgumentException e) {
            atmClient.addStatusMessage("Invalid Server Input");
        }
View Full Code Here


    private void SettingsPanelGeneralButtonRemoveServerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingsPanelGeneralButtonRemoveServerActionPerformed
        if (SettingsPanelGeneralServerList.getSelectedValue() != null) {
            String server = SettingsPanelGeneralServerList.getSelectedValue().toString();
            String ip = server.split(":")[0];
            int port = Integer.parseInt(server.split(":")[1]);
            atmcModel.removeServer(new Server(ip, port));
        }
    }//GEN-LAST:event_SettingsPanelGeneralButtonRemoveServerActionPerformed
View Full Code Here

TOP

Related Classes of logic.Server

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.