Nonaktifkan tombol NetBeans

button.setEnabled(false);
Determined Deer