About 253,000 results
Open links in new tab
  1. java - Creating a console menu for user to make a selection - Stack ...

    Nov 9, 2011 · 4 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 unsure as to how to …

  2. Create a simple menu with Java - Stack Overflow

    Mar 12, 2021 · Am trying to find Java code that can produce the following kind of output when the private static void main...is called, am running the code on Command Prompt so I need java menu …

  3. user interface - Creating a menu in java - Stack Overflow

    Mar 20, 2016 · On the top of the browser, there's a menu with the tabs "File," "Edit," "View," "History," "Bookmarks," "Tools," and "Help." So is there a way to make a similar menu tab in a Java GUI? I'm …

  4. java - A Starting Menu for a simple game - Stack Overflow

    Apr 12, 2011 · The Swing tutorial on menus will be an excellent reference for you as you work through creating a menu. Here is some sample code for creating a simple menu like you described, …

  5. JAVA: Creating a Menu Loop - Stack Overflow

    Mar 29, 2017 · My program contains a few options that the user can select via the input of a number which allows them to complete a specific task. Currently, my code is set up with if and else if loops to …

  6. Basic Java Menu with Switch Case - Stack Overflow

    Nov 1, 2013 · One issue you have, as mentioned by @rgettman, is that comparing String s in Java using == or != will compare the Object reference of the String not the value; basically are the two String s …

  7. java - Creating menus with options that select other menus, without ...

    May 24, 2025 · I want to create menus with options that select other menus, without causing a stack overflow error due to recursion. But the menus have to be initialized, and a menu ...

  8. 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: (Everything is

  9. user interface - Creating menu UI with Java - Stack Overflow

    Feb 27, 2017 · Im attempting to make a standard menu UI in java and I'm having an issue. So essentially Code 1 sets up the Jframe and calls code 2. The problem I'm having is that when the …

  10. swing - How to make PopUp window in java - Stack Overflow

    Jan 13, 2012 · I am currently developing a java application. I want to show a new Window which contains a text area and a button. Do you have any ideas?