Tutorials

Chat System - Login GUI & Altering Messages

Submitted by GeePee on
Introduction: This tutorial is the twelfth in my Java Network Programming using KryoNet series, or seventh in creating a chat client and server system, in which we are going to be altering received messages and creating the login GUI for the client. Previous: In the previous tutorial we created a way to stop two clients from having the same username, therefore making all client usernames unique. The System: We are going to give the user a GUI to interact with the system - to send messages and see the currently connected members of the chat.

Chat System - Client Unique Usernames

Submitted by GeePee on
Introduction: This tutorial is the eleventh in my Java Network Programming using KryoNet series, or sixth in creating a chat client and server system, in which we are going to be ensuring that no two clients have the same username. Previous: In the previous tutorial we created a way to circulate any incoming messages to the server to the rest of the clients. The System: We are going to give the user a GUI to interact with the system - to send messages and see the currently connected members of the chat. When a client connects, add them to a

Chat System - Passing On the Message

Submitted by GeePee on
Introduction: This tutorial is the tenth in my Java Network Programming using KryoNet series, or fifth in creating a chat client and server system, in which we are going to be sending the message to all other clients. Previous: In the previous tutorial we created a way to automatically remove clients that disconnect through a new disconnect listener on the server. The System: We are going to give the user a GUI to interact with the system - to send messages and see the currently connected members of the chat. When a client connects, add them

For Loop in Java

Submitted by donbermoy on
This tutorial will teach you how to use for loop in java. A For Loop is used to iterate through a condition a certain amount of times. I used this type of looping when I know how many times a task is to be repeated. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of sampleForLoop.java. 2.

Data Types in Java

Submitted by donbermoy on
This tutorial will teach you how to understand what are the variables in java. A data type refers to the type of data that can be stored in a variable, means that a variable needs a data type to save space in the memory for allocation. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of variables.java. 2. Now, we will initialize variables with their own data types in java. An int data type contains a whole number.

Load and Play a MIDI Sound File in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will load and play a MIDI sound file in java. We all know that MIDI or Musical Instrument Digital Interface) is a sound designed for recording and playing back music on digital synthesizers that is supported by many makes of personal computer sound cards. It has .mid extension file. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of playMIDI.java. 2.

Count SubString in a Large String in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will have an example of Caret Event and Listener in Java. A CaretEvent lets the user notify interested parties that the text caret has changed in the event with its source. Note: A caret is the cursor indicating the insertion point So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of countSubStrings.java. 2.