I need to create a MenuBar for a GUI program I'm building. Can someone please give me a simple example/guideline on how to do that?
Preferably a simple code that I could test/compile for myself to see how it works? Thanks!
Printable View
I need to create a MenuBar for a GUI program I'm building. Can someone please give me a simple example/guideline on how to do that?
Preferably a simple code that I could test/compile for myself to see how it works? Thanks!
First result for googling "java menu": How to Use Menus (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
Herb Schildt's "Swing : a beginner's guide" is excellent. it has a large chapter devoted to menus that makes it easy. Lots of code online. Each example compiles and runs, which simplifies the question "where did I screw up?"