This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[NetBeans 200502211900; JDS R3; JDK 1.5.0_02] When setting main class for attached project I am sometimes not able to click on the OK button because it is disabled. Sometimes the button is disabled and sometimes not. I wasn't able to reproduce it on another project, although there's nothing special on the attached project IMO.
Created attachment 20452 [details] Project where it fails
Roman, you didn't try to set the main class with "background scanning" turned on, did you?
The bug is independent on the background scanning property setting. Today it was harder for me to reproduce it (seems as some random race condition to me...). Today it failed in 1 case of cca. 50 while yesterday it failed in 1 case of cca. 5. I attach screenshot of the dialog. A workaround is to close the dialog and try again, the probability that OK button won't be disabled next time is high.
Created attachment 20466 [details] Screenshot
This is a threading issue, the listeners are registerd int the AWT Thread after the async job searching all main classes is started and the async job (non AWT Thread) calls back into AWT.
Checking in src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java,v <-- MainClassChooser.java new revision: 1.27; previous revision: 1.26 done
Verified on 20050311-1239.