Online Chat Application in java Netbeans

This is an overview of an online chat application build in java netbeans. The app connects to remote database and enables us to chat with online people. This can be considered as a class 12 project. And this is clearly not the way, a real time chat app is implemented. But it will give you a basic overview of how we can implement chat with just MySQL and java.

If you are interested in building a real time chat, then do give this a try.

Donwload

Before you continue, please make sure that you have read:

How to send variable values between 2 jFrames in Java Netbeans

Here, I have used the free remote database service provider : https://www.db4free.net/about.php

You can register a free account. Now replace dbuser, dbpass, and dbname with your username, password and database name.

LEVEL 1 [ BASICS ] :-

  LOGIN SCREEN

login

  • Used AbsoluteLayout to add the background and position the UI elements.
  • Here login button is actually a jLabel with image.

Login Button:

Register Button :

  REGISTER SCREEN 

register

Register Button :

Back Button :

  PROFILE PAGE 

profile

Profile page loads information about the user when the form is activated.

Edit Button :

OK Button :

  ONLINE USERS PAGE 

online users

Loads the list of online users when the page is activated.

When the user clicks any online user from the  Online user list

  UPDATE PROFILE INFO PAGE 

update

Go Button :

  MYSQL DATABASE