dirty = true; xmlPortDirty = true; remote.setXmlPort(Integer.parseInt(xmlPort.getText())); ajSettings.setXMLPort(Long.parseLong(xmlPort.getText()));
if (xmlPortNr > 1024 && xmlPortNr <=32000){ dirty = true; xmlPortDirty = true; remote.setXmlPort(Integer.parseInt(xmlPort.getText())); ajSettings.setXMLPort(Long.parseLong(xmlPort.getText())); } else{ xmlPort.setText(Long.toString(ajSettings.getXMLPort())); }
            public void focusLost(FocusEvent e) {                if (ajSettings.getXMLPort() != Long.parseLong(xmlPort.getText())) {                    dirty = true;                    xmlPortDirty = true;                    remote.setXmlPort(Integer.parseInt(xmlPort.getText()));                    ajSettings.setXMLPort(Long.parseLong(xmlPort.getText()));                }            }