Class TCPChat
java.lang.Object
TCPChat
- All Implemented Interfaces:
- java.lang.Runnable
- public class TCPChat
- extends java.lang.Object
- implements java.lang.Runnable
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
run()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL
public static final int NULL
- See Also:
- Constant Field Values
DISCONNECTED
public static final int DISCONNECTED
- See Also:
- Constant Field Values
DISCONNECTING
public static final int DISCONNECTING
- See Also:
- Constant Field Values
BEGIN_CONNECT
public static final int BEGIN_CONNECT
- See Also:
- Constant Field Values
CONNECTED
public static final int CONNECTED
- See Also:
- Constant Field Values
statusMessages
public static final java.lang.String[] statusMessages
tcpObj
public static final TCPChat tcpObj
END_CHAT_SESSION
public static final java.lang.String END_CHAT_SESSION
hostIP
public static java.lang.String hostIP
port
public static int port
connectionStatus
public static int connectionStatus
isHost
public static boolean isHost
statusString
public static java.lang.String statusString
toAppend
public static java.lang.StringBuffer toAppend
toSend
public static java.lang.StringBuffer toSend
mainFrame
public static javax.swing.JFrame mainFrame
chatText
public static javax.swing.JTextArea chatText
chatLine
public static javax.swing.JTextField chatLine
statusBar
public static javax.swing.JPanel statusBar
statusField
public static javax.swing.JLabel statusField
statusColor
public static javax.swing.JTextField statusColor
ipField
public static javax.swing.JTextField ipField
portField
public static javax.swing.JTextField portField
hostOption
public static javax.swing.JRadioButton hostOption
guestOption
public static javax.swing.JRadioButton guestOption
connectButton
public static javax.swing.JButton connectButton
disconnectButton
public static javax.swing.JButton disconnectButton
hostServer
public static java.net.ServerSocket hostServer
socket
public static java.net.Socket socket
in
public static java.io.BufferedReader in
out
public static java.io.PrintWriter out
TCPChat
public TCPChat()
run
public void run()
- Specified by:
run in interface java.lang.Runnable
main
public static void main(java.lang.String[] args)