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.

Bug 45422

Summary: NB freezes while project main classes are being computed
Product: java Reporter: vtec <vtec>
Component: ProjectAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED DUPLICATE    
Severity: blocker Keywords: PERFORMANCE
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

Description vtec 2004-06-23 10:31:04 UTC
The last step of J2SE Project Wizard involves
choosing projects main class from list of suitable
classes. It seems that this list is being build in
EventDispatchingThread - button stays pressed and
Netbeans does not repaint itself for several
seconds (on my 3GHz laptop with rather slow (e.g.
notebook type) disk).
Comment 1 Petr Hrebejk 2004-06-23 11:06:11 UTC
Please specify which template did you use? AFAIK there is no wizard
which would have main class selection. Or do you mean project properties?
Comment 2 vtec 2004-06-23 11:32:09 UTC
Yes you are right. I do apologize it is in project properties. I run
into this just after accomplishing project wizard.
Comment 3 Jiri Rechtacek 2004-06-23 14:26:43 UTC
Should be changed two parts on MainClassChooser:
- non-AWT blocked picking up the possible main classes
- use a java-metamodel support to fast receive the main classes
Will be solved in promoD.
Comment 4 Jiri Rechtacek 2004-06-29 16:42:18 UTC
It's partly fixed, the computing the possible main classes doesn't
block AWT thread, the Warm-up message is displayed. It shouldn't
freeze the IDE anymore.

Checking in
src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.19; previous revision: 1.18
done
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.15; previous revision: 1.14
done
Comment 5 Tomas Zezula 2004-07-01 16:47:45 UTC
*** Issue 44940 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Rechtacek 2004-08-25 11:30:40 UTC
Collecting the main classes doesn't block AWT, the rest of speeding-up
is tracked by issue 47481.

*** This issue has been marked as a duplicate of 47481 ***