|
It depends on what kind of object the text field is, but if you look up the class it comes from you should be able to see what interfaces it has.
As an example, you might have created the text box like the following
jTextBox usertext;
jTextBox passtext;
then, to retrieve that information, in your button function code you would have something like
checkUser(usertext.getText(), passtext.getText());
Like I said, check the available class interfaces. there should be something similar to getText().
EDIT: checkUser(string username, string password) would be what my made up checkUser function would accept.
|