Update ChatWindow.java

Updated to the latest version of code