CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2016
    Posts
    4

    Problems with programming if / else length in GUI

    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.

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Problems with programming if / else length in GUI

    Norm

  3. #3
    Join Date
    Nov 2016
    Posts
    4

    Re: Problems with programming if / else length in GUI

    Quote Originally Posted by Norm View Post

    yes and problem solved now

  4. #4
    Join Date
    Aug 2016
    Posts
    1

    Re: Problems with programming if / else length in GUI

    Also check it here if else length

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured