Coder Social home page Coder Social logo

java-study's Introduction

Assignment01 - Chatting Program(java-study/HW1에 위치)

실행방법

$ git clone https://github.com/YeJi222/java-study.git
  • 레포지토리 다운로드 후, 과제 실행 파일 위치로 이동
  • 과제 파일들 HW1 모듈에 위치
$ cd java-study-main/HW1
  • pom.xml 파일이 있는 곳에서 class 파일, jar 파일 등 생성
$ mvn clean package

[Server 실행]

  • target이 생성되고 classes 디렉토리 위치로 이동
$ cd target/classes
  • Chatting Server 실행
$ java chatGUIserver.ChatServer

image

[Client 실행]

$ java chatGUIclient.ChatClientApp

image

  • 대화명에 채팅할 닉네임을 입력하고 엔터키를 누르면 GUI 채팅창이 켜진다

[GUI 실행결과]

  • user1, user2, user3가 접속하여 채팅중
image
  • 채팅방을 나가는 사람이 있으면 나머지 사람들에게 나갔다는 안내 메시지 띄워줌
    image image

[터미널 실행결과]

(Server)
  • 클라이언트 연결시, Connected by client 메시지 콘솔에 출력
  • 클라이언트가 채팅방을 나갈 때, 클라이언트로부터 연결이 끊겼다는 메시지 콘솔에 출력
image
(Client)
  • 클라이언트 코드 실행시, 채팅 닉네임 입력받는다
  • 대화명(닉네임)을 입력하면 GUI 채팅창이 열리고, 채팅창에서 보내는 자신의 대화 내용과 상대방 메시지 내용이 콘솔에 찍힌다
  • 채팅방을 나가면, 다른 사용자들 콘솔창에 채팅방 종료 메시지를 출력해주고, 시스템이 종료된다

(user1)
image

(user2)
image

(user3)
image

[+ 한글 출력]

  • 한글 출력도 잘 되는 것을 확인할 수 있다
image

java-study's People

Contributors

yeji222 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.