-
MenuBar Problems
hi,
I am creating an applet which is to convert numerous currencies. Anyway I am trying to add a menu bar and for some reason it will not display during development or at run time. I am using Net Beans 3.6 and a AWT applet form. The code that was automatically generate for the menubar looks liek this:
jFrame1 = new javax.swing.JFrame();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu1.setText("Menu");
jMenu1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenu1ActionPerformed(evt);
}
});
jMenuItem1.setText("Item");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jFrame1.setJMenuBar(jMenuBar1);
Does anyone have any ideas as too why my menubar won't display?
Any help is appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks