Fork me on GitHub
摘要: JFileChooser() 构造一个指向用户默认目录的 JFileChooser。 JFileChooser(File currentDirectory) 使用给定的 File 作为路径来构造一个 JFileChooser。 setFileSelectionMode(int mode) 设置 JF 阅读全文
posted @ 2017-05-08 17:34 RongT 阅读(4583) 评论(0) 推荐(1) 编辑
摘要: 方法一: 在代码中执行完textArea.append("message")后,如果你想让这个更新立刻显示在界面上而不是等swing的主线程返回后刷新,我们一般会在该语句后调用textArea.invalidate()和textArea.repaint()。 问题是这个方法并不能有任何效果,text 阅读全文
posted @ 2017-05-08 15:47 RongT 阅读(11026) 评论(0) 推荐(1) 编辑