About 2,990,000 results
Open links in new tab
  1. swing - How to build a java Main Menu - Stack Overflow

    Obviously I am trying to make a main menu using the swing components. I understand that in order to make my menu happen, I have to utilize CardLayout , which I do in the code below: …

  2. 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 …

  3. swing - How to do a main menu layout in Java? - Stack Overflow

    May 20, 2014 · You simply use a ActionListener, registered to the "menu pane", which acts a proxy for the buttons actions and provide information about what the action menus via the …

  4. Java Swing | JMenuBar | GeeksforGeeks

    May 20, 2022 · JMenu(String name, boolean b) : Creates a new Menu with a specified name and boolean value specifies it as a tear-off menu or not. A tear-off menu can be opened and …

  5. How to make a Java Main Menu Loop after using a case

    Jan 21, 2016 · import java.util.Scanner; public class basicCalc { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); …

  6. Create a main menu. : Menu « Swing JFC « Java

    Create a main menu. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import …

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

    A menu provides a space-saving way to let the user choose one of several options. Other components with which the user can make a one-of-many choice include combo boxes, lists, …

  8. JAVA Swing Menu Example - Java Code Geeks

    Jul 25, 2016 · A menu provides a space-saving way to let the user choose one of several options. Other components with which the user can make a one-of-many choices include, combo …

  9. Create a Main Menu - Swing - BrainKart

    Fortunately, Swing makes creating and managing the main menu easy. This section shows you how to construct a basic main menu. Subsequent sections will show you how to add options to …

  10. How to create a main menu using java swing

    Jul 6, 2013 · To make your class appear and work as expected, we first need to set it's size. You would do so with YourClass.setSize (x-dimension, y-dimension). Then, if you want it to close …

  11. Some results have been removed
Refresh