Introduction - If you have any usage issues, please Google them yourself
Summary: Java source code, network-related, FTP
Java prepared to achieve an FTP client program, through which clients connect to the specified server. useFtpApplet class inherits Applet class, init () is initialized in the realization of this Applet, set the layout and background, the establishment of the text, labels and text fields.
Connect () method uses the host address, user name and password as parameters to establish a connection with the host. FtpClient using the new generation of new class instance, use login () method FTP server, call showFileContents () method to display the contents of the file.
Stop () method uses FtpClient object closeServer () method to close the server connection.
Action () method listening button, and button events are processed through the use of judgment statement evt.target == BtnConn to track whether the user click the Connect button, if you click an event occurs, by calling the connect () method to connection. If evt.target == BtnClose calling