This code was meant to be when it clicked on the button it became invisible and lblVira
became a number between 0 and 10, it gives no error message and compiles only lblVira
does not "catch" the new text (I'm new to java).
private void btnstartActionPerformed(java.awt.event.ActionEvent evt) {
btnstart.setVisible(false);
Random random = new Random();
int array[] = new int[1];
for (int i=1; i<array.length; i++) {
array[i] = random.nextInt(10);
lblVira.setText(Integer.toString(array[i]));
} }