Code Monkey home page Code Monkey logo

lesterchatroom's Introduction

LesterChatRoom

这是一个聊天室小应用,采用JavaFx和JavaSocket完成。

安装与使用

下载整个项目的源码,设置JDK18,引入JavaFx(20)的依赖,然后先运行Server.java打开服务器端,再运行Client.java打开客户端(可以打开多个客户端),记得在idea里设置下同时运行多个实例,关闭的时候顺序反过来即可。

功能

  • 用Java图形用户界面编写聊天室服务器端和客户端, 支持多个客户端连接到一个服务器。每个客户端能够输入账号。
  • 可以实现群聊(聊天记录显示在所有客户端界面)。
  • 完成好友列表在各个客户端上显示。
  • 可以实现私人聊天,用户可以选择某个其他用户,单独发送信息。
    • 说明:在客户端右侧的在线列表中点击想要私聊的用户,然后选中右下角的私聊按钮,再输入消息,点击发送即可
  • 服务器能够群发系统消息,能够强行让某些用户下线。
  • 客户端的上线下线要求能够在其他客户端上面实时刷新。

界面展示

服务器端

客户端

如果对你有帮助的话,可以给个star,谢谢啦!

lesterchatroom's People

Contributors

leihao-lester avatar

Watchers

James Cloos avatar  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.