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 69232

Summary: "GUI Form Examples" project is not compilable
Product: guibuilder Reporter: Jaromir Uhrik <juhrik>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jaromir Uhrik 2005-11-24 08:44:57 UTC
[daily build #200511231900]
Steps to reproduce:
1.Invoke main menu File|New Project
2.Select "Samples|General|GUI Form Examples" and push Next
3.Push Finish to crate project
4.The generated project is uncompilable
The reason is that the Antenna class has main method like this:
------------------------------%<----------------------------------
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Antenna2().setVisible(true);
            }
       Antenna }
------------------------------%<----------------------------------
instead of:
------------------------------%<----------------------------------
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Antenna().setVisible(true);
            }
        });
    }
------------------------------%<----------------------------------
Moreover the project has not main class set. This is not good sample project
users could see and need to be fixed ASAP.
Comment 1 Tomas Pavek 2005-11-24 15:56:16 UTC
Fixed the compilation error. Main class for the project does not make sense here
- the project does nothing, it is just a collection of various forms
demonstrating layout design. It is still possible to execute the individual forms.

/cvs/usersguide/j2seexamples/GUIFormExamples/src/examples/Antenna.java
new revision: 1.2; previous revision: 1.1
Comment 2 Jaromir Uhrik 2005-11-25 08:53:04 UTC
Verified in daily builkd #200511241900.