Java/PHP/GitLab Fan, Passionate Developer and Loves Teaching

0%

Summary

Another Swing program demo where I have used 3 layouts to show up the demo which are BorderLayout, BoxLayout, GridLayout.

Border Layout

A layout container that arranges and resizes its components to fit in five regions: north, south, east, west, and center.

Read more »

Summary

The following is a simple example on how to read & write data from a file.

Read more »

Summary

MVC i.e. Model-View-Controller architecture usually separates the program in three parts which are Model i.e. the code we write in the form of modules or that represents a model, View that helps in displaying data to the user in the form of GUI and Controller usually handles the user gestures carried out on the GUI.

When using MVC architecture, our view can remain the same and by changing the Model it reflects the view with the help of the controller i.e. user interaction.

Read more »

Summary

Colors in computers are generally made up using RGB mode i.e. Red, Green, Blue.

So in java if we generate random color values for RGB from 0 to 255 each we can make a whole new color out of it by passing this RGB to the color object.

Read more »

Summary

One of the most basic starters program for demonstrating the proper use of Sockets in Java.

The following code makes use of Swing components to illustrate the Client GUI side and the Server side plays the role in Console mode.

Read more »