I have a GUI and have now problems with a code in the GUI controller.
I did commented it out:
Code:
@FXML
private void handleBtnSetProfile(ActionEvent event) throws DatingSiteWebServiceException_Exception {
DatingSiteClient30.setProfileClient(sessionId, Integer.parseInt(txtLengthProfile.getText()), (ColorHair) cbColorHairProfile.getValue(), (ColorEyes) cbColorEyesProfile.getValue(), taHobbiesProfile.getText(), taDescriptionProfile.getText());
loadProfile();
int length = Integer.parseInt(txtLengthProfile.getText());
/* if (length > 145 && < 215) {
{
//return true;
DatingSiteClient30.setProfileClient(sessionId, Integer.parseInt(txtLengthProfile.getText()), (ColorHair) cbColorHairProfile.getValue(), (ColorEyes) cbColorEyesProfile.getValue(), taHobbiesProfile.getText(), taDescriptionProfile.getText());
lblMeldingen.setText("Uw profiel gegevens zijn gewijzigd.");
}
else {
lblMeldingen.setText("U dient een geldige lengte in te vullen.");
}
*/
lblMeldingen.setText("Uw profiel gegevens zijn gewijzigd.");
}
This is the code from the setProfileClient in another class
Code:
public static Profile setProfileClient(String sessionId, int length, ColorHair colorHair, ColorEyes colorEyes, String hobbies, String description) throws DatingSiteWebServiceException_Exception{
return setProfile(sessionId, length, colorHair, colorEyes, hobbies, description);
}
Hope you can help me to find what the problem is.
I am a beginner in java programming.
Thank you for your great help.