About 196,000 results
Open links in new tab
  1. java - Using scanner class with a GUI - Stack Overflow

    Mar 26, 2014 · I'm using java swing to create my GUI and using the scanner class to get the information inputted from the JTextFields across to the server. is this possible and if so how?

  2. java - Scanner with GUI - Stack Overflow

    May 6, 2015 · I want to make a program cipher using monoaphabetic cipher with java GUI. But when I click the button to encrypt, the textfield2 won't show the result and make the program …

  3. Does using GUI's JFrame cancels the Scanner class?

    Apr 18, 2014 · You just cannot use the Scanner to take input from the command line. A program in Java should either be a GUI application or a Console application, but not both. Once you …

  4. Java User Input (Scanner class) - W3Schools

    The Scanner class is used to get user input, and it is found in the java.util package. To use the Scanner class, create an object of the class and use any of the available methods found in the …

  5. Scanner (Java Platform SE 8 ) - Oracle Help Center

    A simple text scanner which can parse primitive types and strings using regular expressions. A Scanner breaks its input into tokens using a delimiter pattern, which by default matches …

  6. Java User Input – Scanner Class - GeeksforGeeks

    1 day ago · The most common way to take user input in Java is using the Scanner class. It is a part of java.util package. The scanner class can handle input from different places, like as we …

  7. Scanner Class in Java - GeeksforGeeks

    Apr 11, 2025 · In Java, the Scanner class is present in the java.util package is used to obtain input for primitive types like int, double, etc., and strings. We can use this class to read input …

  8. Java Scanner Class with Examples using NetBeans

    Jul 5, 2022 · In this tutorial, we will learn Java Scanner and its methods with the help of examples using netbeans. The PrintWriter class of the java.io package can be used to write output data …

  9. Reading User Input with Java - Camille Crumpton

    In this class, we will learn to receive data through a tool called the “Scanner”. This will allow us to receive input and store that input into variables of various data types, including strings, chars, …

  10. java - Receiving user input (via scanner) in a GUI Interface

    Scanner input = new Scanner(System.in); String data = input.nextLine(); My question is how can I make the GUI interface accepts user inputs and not only displaying results/errors?

  11. Some results have been removed
Refresh