Skip to content
Advertisement

Tag: javafx

Validate a value that already exists in database in JavaFX

When i am registering members with a memberId, how to check that the user id is already exists in the members table or not ? I have tried in below method. Primary key is the MemberID MemberDbController.java MemberUiController.java } Its Throws an Already Exists Alert for both Duplicate & New Entry. Answer You’re compaing a String to an Integer object.

Advertisement