Fixed so that the server frame does not use ScrollPane instead of JScrollPane. Also added a listener and a controller class.