Since your question is not very clear, i suggest these answers:
1st option - you want to get string from your JTextField:
String text = txtGuessPad.getText();
2nd option - you want to check if text contains only letter:
String text = txtGuessPad.getText();
if(text.matches("^[a-zA-Z]+$")){...
3rd option - you want to compare two strings (one of them is from JTextField):
String text = txtGuessPad.getText();
String text2 = "test";
if(text.equals(text2)){... //if you want to match whole word and case sensitive
if(text.equalsIgnoreCase(text2)){... //if you want to match whole word and NOT case sensitive
if(text.startsWith(text2)){... //if you want to check if you string starts with other string
4th option - let's put it in a function:
public boolean isEqualToString(JTextField textField, String compareTo) {
String text = textField.getText();
if(text.equals(compareTo)) {
return true;
}
return false;
}