Thread: ChatGUI problem
View Single Post
  #4 (permalink)  
Old 06-14-2007, 12:43 AM
Jamie Jamie is offline
Member
 
Join Date: May 2007
Posts: 60
Jamie is on a distinguished road
Quote:
because I do not know what to put in it.
in addition I cannot run the chat anymore as
I have this
Exception in thread "Thread-2" java.lang.NullPointerException
Then do not remove those lines. I guess the problem was related to a netbeans bug. Same happened to me. It just did not ask me the ip address, then i removed those lines and it worked without those lines.

Quote:
Cannot figure out how to do the boolean flag.
I noticed that you have a different logic there which should work too. You just seem to use "lastMessageSent" variable in Send class wrongly.

You already defined it as a class variable at the top of your class. When you use "String lastMessageSent = "";" and "String lastMessageSent = myGUI.lastMessageSent;" in your methods, you are defining a new variable called lastMessageSent. So do not use String keyword before your variable name while using it inside methods.

Good luck.
Reply With Quote