Sorry, this is a newbie question, but I dont think anyone in the beginners section knows the answer to this. This is the code that I wrote, but I get a "Variable setText not found in class javax.swing.JTextField" error.
I just want to know how to make a simple random number generating program.
Heres the code:
private void pickRandomNumber()
{
Random randomObject = new Random();
int number = 1 + randomObject.nextInt(6);
jTextField.setText = String.valueOf( number ) ;
}