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 - "GUI Form Examples" project is not compilable
Summary: "GUI Form Examples" project is not compilable
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2005-11-24 08:44 UTC by Jaromir Uhrik
Modified: 2005-11-25 08:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.