Digen Mahara wrote:Shikha as Michael Dunn said use the dispose() method
eg : if your parent frame is Form1 then it works like this
Shahzad Latif wrote:If you want to open multiple files at the same time and extract data from those files then you will have to try multithreading. In this way, you'll be able to read one file per thread. Please see the following two help topics on multithreading in Java:
http://www.roseindia.net/java/thread/Java-Multithreading.shtml (Conceptual)
http://www.tutorialspoint.com/java/java_multithreading.htm (Code Example)
Riaan Nel wrote:Look at line 108. You want to close the frame, but all you do is to make the components on your frame invisible. You need to dispose of the frame.
Something like this.
The PmtGui.this is used to tell your anonymous inner class (MouseAdapter) that you are referring to the outer class (PmtGui).
On a side note, don't use MouseListeners on buttons. If you disable the button, the MouseListener will still register events. Rather use an ActionListener.
Tim Moores wrote:Correct. Is that host name resolvable on the machine where you're running the code? It sure is not on mine.
Tim Moores wrote:Well, what do you think the error message is trying to tell you?
Tim Moores wrote:So the problem is solved now?
Tim Moores wrote:Are you going to tell us what exception that was, and in which line of code it happened, or are we supposed to guess?