You're declaring JTextArea edit as a local variable in the constructor. As soon as the constructor finishes, it goes out of scope. You need to declare it as a class field and initialize it in the...