Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JFrame not working with NetBeans

807601Apr 10 2008 — edited Apr 10 2008
I started Java today and am using NetBeans IDE 4.1.
package helloworldapp;

    
    public Main() {
    }
    

    public static void main(String[] args) {

       JFrame frame = new JFrame("Hello");
       frame.setsize(300, 300);
       frame.setvisible(true);
       
    }
    
}
NetBeans informs me that it 'cannot find symbol'. Help appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2008
Added on Apr 10 2008
12 comments
2,541 views