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.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.