public void parseVariable() {
		String var = nameField.getText() + ";";
		if(stringField.isEnabled()) {
			var += "S;" + stringField.getText();
		} else if(intSpinner.isEnabled()) {
			var += "I;" + intSpinner.getValue();
		} else if(booleanBox.isEnabled()) {
			var += "B;" + booleanBox.isSelected();
		} else if(floatSpinner.isEnabled()) {
			var += "F;" + floatSpinner.getValue();
		}
		
		listModel.add(list.getSelectedIndex(), var);
		listModel.remove(list.getSelectedIndex());
		disableEdit();
	}