Hope it is not too late to reply for this. If so then another one who refers this may find this answer helpful.
For your particular question the answers is that you simply can use an if statement to perform this.
Assuming that your password jPasswordfield is "jpassText" and your password is "abc123"
if(jpassText.getText().trim().equals("abc123")){
System.out.println("Password is correct");
}else{
System.out.println("Please re-try");
}
For the sake of learning this is fine. But if you move into a login screen there are several steps to be followed.
step 1 : get the username and the password
step 2 : trim them and check for empty strings
step 3 : check whether the user is available in the database (of course you should keep a db and query for the user details from it)
step 4 : encrypt the password and compare both username and the password with the table and if success grant the login else let the user try again.
When saving passwords it is better to encrypt them so that it is not saved in plain text. When querying, user entered password should be encrypted with the same algorithm it was saved to the database and compare the encrypted password string with the queried password.
This practice can be followed even when you try to give some administrative facilities inside your application for certain group of users.
Hope that helps.