System.in points to JtextArea and using Scanner with it causes application to hang
问题 I've got a JFrame that contains a single JPanel that contains a single JTextArea. I've successfully managed to point System.out to the JTextArea, but when I try to use Scanner(System.in) to parse input from the JTextArea, it doesn't even seem to load anything. As in, when I build and run the application, nothing happens, no frame is presented. Here is my code: /** * Create the frame. */ public TerminalForm() { setTitle("Terminal"); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setBounds