if (ajSettings.getPort() != Integer.parseInt(port.getText())) { dirty = true; ajSettings.setPort(Integer.parseInt(port.getText()));
int portNr = Integer.parseInt(port.getText()); if (ajSettings.getPort() != portNr) { if (portNr > 1024 && portNr <=32000){ dirty = true; ajSettings.setPort(Integer.parseInt(port.getText())); } else{ port.setText(Long.toString(ajSettings.getPort())); }
            public void focusLost(FocusEvent e) {                if (ajSettings.getPort() != Integer.parseInt(port.getText())) {                    dirty = true;                    ajSettings.setPort(Integer.parseInt(port.getText()));                }            }