NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

how to create a menu with netbeans

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
loop



Joined: 11 Nov 2010
Posts: 3

PostPosted: Thu Nov 11, 2010 3:53 pm    Post subject: how to create a menu with netbeans Reply with quote

Hi people, i'm a new subscribe, I have a problem to create a menu in a simply java interface, I try to explain my problem:

I have never created a java gui, a few days ago, I created a small but yesterday i try to create a submenu exit in a menu File, I try to insert in menu this code:
Code:

private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
        jMenuItem1.setAction(javax.swing.WindowConstants.EXIT_ON_CLOSE);
}


but it's generate an error, what is wrong?
Sorry for my crazy problem.
I hope anyone would help me.
bye[/code]
Back to top
loop



Joined: 11 Nov 2010
Posts: 3

PostPosted: Fri Nov 12, 2010 11:33 am    Post subject: Reply with quote

up
Back to top
loop



Joined: 11 Nov 2010
Posts: 3

PostPosted: Fri Nov 12, 2010 11:35 am    Post subject: Reply with quote

up
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo