Reading user input from a JTextField would be an obvious one. JTextFields return Strings. You probably could wire a Scanner up to a JTextField somehow if you really wanted to, but that would be like...