|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ChatConnection
Constructor Summary | |
ChatConnection(javax.swing.JTextArea X,
javax.swing.JScrollPane Y)
|
Method Summary | |
void |
close()
Closes the chat connection input and output streams |
boolean |
open(java.lang.String IPAddress,
int PortNumber)
Opens a connection to the server at the given IP address and port number. |
void |
run()
This method is from the runnable interface. |
void |
sendMessage(java.lang.String Text)
Outputs a message to all the other chat users. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChatConnection(javax.swing.JTextArea X, javax.swing.JScrollPane Y)
Method Detail |
public boolean open(java.lang.String IPAddress, int PortNumber)
public void close()
public void run()
run
in interface java.lang.Runnable
public void sendMessage(java.lang.String Text)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |