public void ApplyChanges() // this function will be called when the apply button is hit { nodeInfo.SetNodeNumber(Integer.getInteger(JLabel4.getText())); }