i am pretty new to java and have an application, i need it to be able to get values entered in a java form (username and password) and compare it to data in the mysql table, if it matches then let the user in, if not then generate a user error message..... can anybody help me with this???

the names of the textfield is username_textFi eld, and password field is passwordField.