Ads 468x60px

Deepak Gupta

Posted On

Sunday, 29 December 2013

Client/Server Chat Application

client/server chat Application

Client/Server Chat Application

Client/Server Chat Application is a Chat Application To Communicate one

Node to another node via network. Here, I Show you Client/ Server Chat

Application Using JAVA Language.

How to Use Client/Server Chat Application


you can use this Chat Application in one System Also. you open two CMD

Windows. in One cmd window you run the client program and in another

window you run the server program. and Enjoy the chat with each others.


you can run this program in two System also.for that first you establish a

network between these two computer via network cable, adhoc approach

or any other method. Now you run the client program in one system and

run the server program in another system and enjoy the chat application.


public class MyClient1
Socket s;
DataInputStream din;
DataOutputStream dout;

public MyClient1()
s=new Socket("localhost",10);
din=new DataInputStream(s.getInputStream());
dout=new DataOutputStream(s.getOutputStream());
catch(Exception e)

public void clientChat() throws IOException
BufferedReader br=new BufferedReader(new InputStreamReader(;
String s1;

System.out.println("Server Message : " +din.readUTF());
public static void main(String s[])
new MyClient1();


public class MyServer1
ServerSocket ss;
Socket s;
DataInputStream dis;
DataOutputStream dos;

public MyServer1()
System.out.println("Server Started :");
ss=new ServerSocket(10);
System.out.println("Client Connected :");
dis=new DataInputStream(s.getInputStream());
dos=new DataOutputStream(s.getOutputStream());
catch(Exception e)

public static void main(String s[])
new MyServer1();

public void serverChat() throws IOException
String str,s1;
System.out.println("Client Message : "+str);
BufferedReader br=new BufferedReader(new InputStreamReader(;

How To run Client/server chat Application

To run Client/Server chat server you Follow the below steps..

Step-1. First you copy the program , Paste in Notepad and

Save it as

Step-2. Now, you Copy the program in the same directory

and Paste in Notepad and Save it as

Step-3. Now, In one CMD window , First you Compile

Program so that you will get the MyServer1.class File. this cmd windows

will works as a server for your chat application.

Step-4. In Another CMD windows  , you Compile

Program. it will works as the Client for your chat Application.

Step-5. Now, you run the MyServer1 program. it will wait for the

connection from the client program.

Step-6. Now, you run the MyClient1 program. when it will successfully

connect with your MyServer1 Program , you can start your chat.

MyServer1 Screenshots

MyClient1 Screenshots

client/server chat Application

Thank You To All My Reader
Deepak Gupta

Related Post

1. Layout Manager in JAVA

2. How we Install Apache Tomcat Server

3. How To Install JDK on Windows

4. JDK 8

5. Content Management System ( CMS )

6. JavaScript Form Validation

7. JavaScript Operator

8. HTML Marquee Tag

9. How To Add Music File To Website

10. How We Enable JavaScript in Browser

How to add Contact Us Form in Blogger

image of contact us form

In Mostly Website and blog you will Find the Contact Us Page so That

User can easily communicate with the Author of the Site and Blog .

If You Want To Add Contact Us Form in blogger , You can easily

Add Contact Us Form in Blogger with the help of Google Doc .

You Follow the below Steps ...

Step-1. Sign in into your Google Doc Account

            Click Here For Google Doc Account...

Step-2. Here You Create a Form which you want to add in blogger .

image of google drive

Step-3. After Creating the Form you click on File Menu Than Embed

            Option . Here you will get HTML code of Form , Copy it.

image of html code

Step-4. Now , You Sign in into your Blogger account and Create a New

            Blank page .

image of new page in blogger

Step-5. Here , in the HTML mode of the post you Paste the code .

image of HTML mode

Step-6. Now , Publish it . Hence You Have Done...

Thank You To All My Reader
Deepak Gupta

Related Post

1. What is Alexa Rank and How We improve it

2. How we add a " Find us on facebook " link to blogger

3. How we add Third Party Gadgets to Blogger

4. How to Add a Custom Favicon to blogger

5. How to Optimize images for Better Search Engine Ranking

6. World Wide Web Consortium (W3C)

7. Animated moving car program : computer graphics in c

8. How to Backup a blogger template

9. Batch programming :- How we Create a simple game in batch programming

10. Simple Calculator Program in JavaScript :

Sunday, 26 May 2013

how we upload video on blogger

upload video on blogger

Today's Technology era every blogger , Webmaster want to upload video on

our blog or Websites so that video will represents the more clear view of the

Article, Tutorials, Program, Company, Software, movie, cartoons, games

and others. if you Know the HTML programming Language Then you can

simply use the <embed> Tag to upload the video.

Click here to know How To Add Music File To Website

But if you don't know the Web Programming Language and want to upload

video on blogger, then you follow the below steps..


Step-1. Sign in Into your blogger account and go to the POST interface.

Step-2. in Post Toolbar you click on the media icon ( as Shown in the Fig. ).

upload video on blogger

Step-3. Now, it Will Prompt you to upload the video.Here you can upload the

video from youtube or From any other Websites also.  so you select the Desire

video file. and click on the Upload button. it will upload your video to your blog.

upload video on blogger


you can store your video to other site like Vimeo . From Vimeo you can get

the code to upload the video on your blog or web sites.

Step-1. Upload the Video on

Step-2. After Uploading the video, you will get the Embed code of this video.

upload video on blogger with vimeo

Step-3. Copy this code and paste in your Website or blog and Publish it. it will

Appears like This.

upload video on blogger with vimeo

Promotional video of i-World-Tech..

Thank You To All My Reader
Deepak Gupta

Related Post

1. How to Backup a blogger template

2. How to Change blogger Template

3. How To Add Meta Tags To Blogger

4. How we delete a blog

5. Blogger Beginner Guide

6. How to Optimize images for Better Search Engine Ranking

7. How We Add Blog to Google Search Engine

8. How we add Third Party Gadgets to Blogger

9. Add Twitter Follow Button To Blogger

10. How we add Third Party Gadgets to Blogger

Saturday, 25 May 2013

Layout Manager in JAVA

layout Manager in JAVA

Layout Managers

java.awt and javax.swing packages contains Many Layout Manager classes.

Layout Manager determines the Way in Which That Component are arranged

in the container. All the JAVA Container Contains Their own Default Layout

Manager so in your JAVA Program if you not Specify any java Container,

JAVAcompiler Will use the Default layout manager. you can also Select

different layout Manager.

Why We Need To Define The Layout Manager

One Question may be coming in your mind Why we need to Specify the

Layout Manager ? We can use the JAVA Component by Specifying the

Location and Size also so Why We need Layout Manager..?? so the

reason is to ensure that JAVA GUI Elements are displayed properly in

every possible JAVA Environment. Layout manager Automatically Adjust

the size and Position of the components to fit According the Size of the

Screen. Suppose if your Windows Size is less and you Fixed the Size

and Location of Each Component, Then There is a Possibility of the

Overlapping of the Components.

Different Types of Layout Manager

JAVA defines different types of the Layout Manager, Some of them given

under the Following points..

1. FlowLayout

2. BorderLayout

3. CardLayout

4. GridLayout

5. GridBagLayout

6. BoxLayout

7. SpringLayout

Layout MangerDescriptionPackage
Flow LayoutIt Place the Components in the rows in a container,after filling the one row it will start to fill the next

Example of FlowLayout

Flowlayout Manager in JAVA

Layout MangerDescriptionPackage
BorderLayoutIt Place the component in four border of the container (left,right,top,down) and centerjava.awt

Example of BorderLayout

borderlayout Manager in JAVA

Layout MangerDescriptionPackage
CardLayoutIt place the component one on top of another, only the top component is visible at any one timejava.awt

Example of CardLayout

cardlayout Manager in JAVA

Layout MangerDescriptionPackage
GridLayoutIt Place the components in rectangular grid in the form of rows and columnsjava.awt

Example of GridLayout

Gridlayout Manager in JAVA

Layout MangerDescriptionPackage
GridBagLayoutIt Place the components in rectangular grid in the form of rows and columns but rows and columns can very in lengthjava.awt

Example of GridBagLayout

GridBaglayout Manager in JAVA

Layout MangerDescriptionPackage
BoxLayoutIt Place the components in either of rows or columns. the BoxLayout Manager is the default for the Box Container classjavax.swing

Example of BoxLayout

boxlayout Manager in JAVA

Layout MangerDescriptionPackage
SpringLayoutIt Allow a Components to have their positions defined by "spring" or "struts"javax.swing

Example of SpringLayout

Springlayout Manager in JAVA

Thank You To All My Reader
Deepak Gupta

Related Post

1. How To Install JDK on Windows

2. JDK 8

3. How we Install Apache Tomcat Server

4. Content Management System ( CMS )

5. JavaScript Form Validation

6. JavaScript Operator

7. HTML Marquee Tag

8. How We Enable JavaScript in Browser

9. Mini Project in C : Book Shop Inventory System

10. Interesting C++ Program

Saturday, 18 May 2013

VLSI Physical Design

VLSI Physical Design

What is VLSI ?

VLSI ( Very Large Scale Integration ) Circuits is the Collection of More Than

One Million Small Chips Integrated on Single Large Chip. Initially These Chips

are Designed in Small Scale and After Designing and Testing Each modules

They are Fabricated in Single Large Chip. This Single Large Chip is

Known as VLSI Circuits.

Ex. Microprocessor

VLSI Design Cycle

To Design a Large VLSI Chip, It Follows a Some Steps Which are

given Under The Following Points.

1. System Specification

2. Architectural design

3. Functional design

4. Logic design

5. Circuit design

6. Physical Design

7. Fabrication

8. Packing and Testing

1. System Specification

In The First Step of VLSI Life Cycle, We Design High Level Functional

Description of The Circuits With Some Constraints Like Size, Speed,

and Power.

2. Architectural Design

In Architectural Design, We Design Micro-architectural Specification of The

Design With Architecture Style, Number of ALUs, Floating Point Units,

Number and Structure of Pipelines, and Size of Caches.

3. Functional Design

In Functional Design of VLSI Life Cycle We Concentrate on Functionality

of Each Individual Unit and Their Interconnection. The Area, Power,

and Time of Each Unit is Identified.

4. Logic Design

It Consists of Boolean Expressions and Timing Information of the Each

Individual Units.

5. Circuit Design

After Design of the Boolean Expressions and Timing Information of Each

Individual Unit, Circuit Description in Logic Gates is Generated.

6. Physical Design

Circuit Representation of the Individual Units is Converted into a Geometric

Representation. This Geometric Representation is Known as Layout of

The Circuits.

7. Fabrication

Output of the Physical Design Phase Will Works as a Input of the Fabrication

Phase. so after a layout is generated the design is ready for actual fabrication

or manufacturing.

8. Packing , Testing and Debugging

This is the Last Phase of the VLSI Design. After The fabrication or

Manufacturing of the Chip, Chips are ready for Packaging, Testing,

and debugging.


For the Detailed Study of the VLSI Physical Design, you refer the

Following Presentation.

Share This