Assignment01 - Chatting Program(java-study/HW1에 위치)
$ git clone https://github.com/YeJi222/java-study.git
- 레포지토리 다운로드 후, 과제 실행 파일 위치로 이동
- 과제 파일들 HW1 모듈에 위치
- pom.xml 파일이 있는 곳에서 class 파일, jar 파일 등 생성
- target이 생성되고 classes 디렉토리 위치로 이동
$ java chatGUIserver.ChatServer
![image](https://private-user-images.githubusercontent.com/70511859/263443610-1c62522a-2d39-4c60-9915-cfd9e4caee72.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2NTY4NzYsIm5iZiI6MTcyMzY1NjU3NiwicGF0aCI6Ii83MDUxMTg1OS8yNjM0NDM2MTAtMWM2MjUyMmEtMmQzOS00YzYwLTk5MTUtY2ZkOWU0Y2FlZTcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE0VDE3MjkzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkY2M1YTZhOGFiZTU0YzRhMjJkZmUwYjZlZGEyNDhmOTM4NWYwMTQxYmNkMTRkMmIxY2MzZjJhMTJlMzNjYWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9N0c94n9AWpz8q3sHeK56IEcD7JBuwJBSgJHr7AYP8Y)
$ java chatGUIclient.ChatClientApp
![image](https://private-user-images.githubusercontent.com/70511859/263444999-c26a3b77-63bb-4b64-babf-49a0b72d4d10.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2NTY4NzYsIm5iZiI6MTcyMzY1NjU3NiwicGF0aCI6Ii83MDUxMTg1OS8yNjM0NDQ5OTktYzI2YTNiNzctNjNiYi00YjY0LWJhYmYtNDlhMGI3MmQ0ZDEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE0VDE3MjkzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlZjFlYTAwNWYzMGU3OWEyNjJkNjVlZTM3MDlhMjA1NjYxYTU4ZGYxODRjNTBkYmJkN2E2NmUzMDgyMTU3NGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.soku3BSG9NrvfMB6giLHmwM6f7UgEpFb5J8QkWXLBpc)
- 대화명에 채팅할 닉네임을 입력하고 엔터키를 누르면 GUI 채팅창이 켜진다
- user1, user2, user3가 접속하여 채팅중
- 채팅방을 나가는 사람이 있으면 나머지 사람들에게 나갔다는 안내 메시지 띄워줌
![image](https://private-user-images.githubusercontent.com/70511859/263465519-0f149b38-07ab-486f-9528-9af918b8ddcb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2NTY4NzYsIm5iZiI6MTcyMzY1NjU3NiwicGF0aCI6Ii83MDUxMTg1OS8yNjM0NjU1MTktMGYxNDliMzgtMDdhYi00ODZmLTk1MjgtOWFmOTE4YjhkZGNiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE0VDE3MjkzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmYWRhNWEyY2VmZjRiYWYwMzNjZGFjNjI5NmQ2YTFiNjlmMzhiNTNhNDg0ZGRjMWVlMDM4YjA0OGIzYjU0ZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oWvTX2AW6yXJPjyPdq9qAl1LtRIDnM8Xce1AwyxQv5U)
- 클라이언트 연결시, Connected by client 메시지 콘솔에 출력
- 클라이언트가 채팅방을 나갈 때, 클라이언트로부터 연결이 끊겼다는 메시지 콘솔에 출력
- 클라이언트 코드 실행시, 채팅 닉네임 입력받는다
- 대화명(닉네임)을 입력하면 GUI 채팅창이 열리고, 채팅창에서 보내는 자신의 대화 내용과 상대방 메시지 내용이 콘솔에 찍힌다
- 채팅방을 나가면, 다른 사용자들 콘솔창에 채팅방 종료 메시지를 출력해주고, 시스템이 종료된다
(user1)
![image](https://private-user-images.githubusercontent.com/70511859/263465762-1986665f-1070-4958-9985-4110c1aadd14.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2NTY4NzYsIm5iZiI6MTcyMzY1NjU3NiwicGF0aCI6Ii83MDUxMTg1OS8yNjM0NjU3NjItMTk4NjY2NWYtMTA3MC00OTU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