阅读背景:

System.in指向JtextArea并使用Scanner导致应用程序挂起

来源:互联网 

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:I've got a JFrame that contains a single JPanel




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: