About 18,500,000 results
Open links in new tab
  1. Create a simple menu with Java - Stack Overflow

    Mar 12, 2021 · @CodeTiger Do you want your menu to be as a console output or should it have GUI. You could do a switch/case e.g. public static void main(String[] args) { …

  2. How to Use Menus (The Java™ Tutorials > Creating a GUI With …

    Creating and Setting Up Menu Bars; Creating and Populating Menus; Creating, Populating, and Controlling Popup Menus; Implementing Menu Items

  3. Java AWT MenuItem & Menu - GeeksforGeeks

    Nov 13, 2023 · The Java AWT Menu class represents a pop-up menu component in a graphical user interface (GUI) that can contain a collection of MenuItem objects. It provides a way to …

  4. JAVA Swing Menu Example - Java Code Geeks

    Jul 25, 2016 · 2.2 Creating Menus. The following code creates the menus shown near the beginning of this menu section. Because this code has no event handling, the menus do …

  5. Java Program to Create a Menu and Menu Bar - Sanfoundry

    1. Create a menu using JMenu class. 2. To create menu items use the JMenuItem class. 3. Create a menu bar using JMenuBar and add the menu to it. 4. Set the menu to the frame …

  6. Swing Menu in Java - Online Tutorials Library

    Swing Menu in Java - Learn how to create and implement menus in Java Swing. Explore different types of menus, including JMenus, JPopupMenus, and more.

  7. Menu Driven Program In Java Using Switch Case | do-while

    In this tutorial, you will learn how to create a menu driven program in Java using switch case, while, do-while, and functions with examples.

  8. java - Creating a console menu for user to make a selection

    Nov 23, 2011 · Doing a program in Eclipse with Java. What I want to do is when I execute the program I want present the user with a choice. I have all the calculations etc. done, I'm just …

  9. Create menus and submenus in Java - Roseindia

    This program shows how to create menu bar, menus, submenus and Separators. Here, all items shows on a frame with the help of following methods and APIs: JMenuBar: This is the class …

  10. Java Swing | JMenuBar | GeeksforGeeks

    May 20, 2022 · JMenu(String name) : Creates a new Menu with a specified name. JMenu(String name, boolean b) : Creates a new Menu with a specified name and boolean value specifies it …

Refresh