Hello (world),
The following code works when used outside of netbeans for when receiving input from the server:
while (true) {
jTextArea1.append("\n"+in .readUTF());
}
However, whenever used in netbeans, the entire GUI freezes until I kill the server. Furthermore, it's actually "working" in so far as when the server is finally shut off, the GUI is finally updated to reflect all of the messages that have come in.
What am I doing wrong? I moved to netbeans in order to make a nice gui -but now the application has stopped working
Any help would be appreciated for this javaranch newbie. By the way, the server is sending out a writeUTF().
Not sure if this is the right category for this or not.
Thanks in advance!