I want to get text from a JTextField when a button is pressed, however at the moment I'm getting a huge error message from Java at the command prompt when i press the button.
The code is below
Both of the above methods are called by buttons using action listeners.
Thanks
The code is below
Code:
private void newPage()
{
page = fieldad.getText();
fieldad.setEnabled(false);
}
private void Limit()
{
limitHist = Integer.parseInt ( fieldlim.getText().trim() );
fieldlim.setEnabled(false);
}
Both of the above methods are called by buttons using action listeners.
Thanks