我已经创建了一个文本文件,其中存储了一些从文本字段中提取的变量。但是为了向这个文本文件提交新的变量,我需要关闭我的程序并重新打开它。dispose();命令关闭JFrame,将我带到主菜单,但在再次打开菜单并提交不同的值时,上次的值已被重新提交。有没有简单的方法来修正这个问题呢?下面是我写给.txt代码的代码:
public c
在JFrame中,我可以用一个简单的txtField.getText()来做这件事,但是我如何传递JFrame like参数呢?static boolean validateFields(Webcrawler wc) { //I created the txtUrl in the original JFrame//The code is from the JFrame is generated by Netbeans.