Cross platform LAN messenger
#1

Abstract
This is a LAN Messenger designed to function in a heterogeneous network containing mainly machine running on windows-based and Linux-based machines on which the Java Virtual Machine( JVM) is running. The main reason for taking up such a project was the lack of a simple LAN Messenger which works in a heterogeneous network. The obvious choice of the programming language was JAVA in which the compiled byte codes can be interpreted on any machine running the JVM. Moreover, the product is based on a peer-to-peer architecture rather than the conventional Client-Server architecture.
[attachment=255]
Reply
#2

LAN Chat


The LAN Chat uses same network protocol like a Win popup LAN Messenger, Office Popup and Net Send GUI. So you can chat with users of Win popup LAN Messenger and receive private messages from users of Office Popup and Net Send GUI. Silent installation is useful for network administrators who wish to install LAN Chat without user intervention so they can perform the operation quickly over any number of computers..
Code:
This file contains GUI mode to send & receive message.USER1.java contains object of SendMessage.java & ReceiveMessage.java.This two file have to compile first.

USER1.java send message to USER2.java. To run this file , first compile it In Command prompt write

C:\>javac USER1.java



to run this file



C:\>java USER1



The source code is :



import java.awt.BorderLayout;

import java.awt.Container;

import java.awt.FlowLayout;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import javax.swing.*;

import java.awt.GridLayout;

import java.awt.event.KeyAdapter;

import java.awt.event.FocusAdapter;

import java.awt.event.WindowAdapter;

import java.awt.event.WindowEvent;

import java.awt.event.FocusEvent;

import java.awt.event.KeyEvent;







public class USER1 extends JFrame implements ActionListener , Runnable

{

JTextField text_field;

JTextArea text_area;

JButton send,receive;

ReceiveMessage rm;

SendMessage sm;

Thread t=null;

boolean flag;



public USER1()

{



try{

rm = new ReceiveMessage();

sm = new SendMessage();

}catch(Exception e){}



setLayout(new FlowLayout());

setTitle("USER1");



text_area=new JTextArea(15,40);

text_area.setEditable(false);





JScrollPane scroll = new JScrollPane(text_area);

add(scroll);



text_field=new JTextField(20);

text_field.addKeyListener(new KeyAdapter()

{

public void keyPressed(KeyEvent ke)

{

if(ke.getKeyCode() == KeyEvent.VK_ENTER)

{

try{

String msg = new String(getTitle());

msg = msg + " : ";

msg = msg + text_field.getText();

sm.sendMessage(msg);

text_area.append( "\n " + msg);

text_field.setText("");

}catch(Exception e){}

}

}

});





addWindowListener(new WindowAdapter()

{

public void windowClosing(WindowEvent we)

{

flag=true;

}



});





add(text_field);



send=new JButton("Send");

send.setMnemonic('S');

send.addActionListener(this);

add(send);



setSize(500,350);

setLocationRelativeTo(null);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setResizable(false);

setVisible(true);



flag=false;

t=new Thread(this);

t.start();



}





public void run()

{

for(;;)

{

try{

String message=rm.getMessage();

if(!message.equalsIgnoreCase("null_value"))

{text_area.append( "\n " + message);}



if(flag)

break;

}catch(Exception e){}

}



}





public void actionPerformed(ActionEvent ae)

{

if(ae.getSource()==send)

{

try{

String msg = new String(getTitle());

msg = msg + " : ";

msg = msg + text_field.getText();

sm.sendMessage(msg);

text_area.append( "\n " + msg);

text_field.setText("");

text_field.requestFocus();

}catch(Exception e){}

}



}





public static void main(String[] args)

{

USER1 u1 = new USER1();

u1.text_field.requestFocus();

}



}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: lan messenger pdf, messenger classic, abstract virtual lan, eriksson dcn lan switch, holy cross site calgary, mobile based lan monitoring, cross platform ide for unix based system using c,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Platform Autonomous Custom Scalable Service using Service Oriented Cloud Computing Ar 1 1,037 15-02-2017, 04:39 PM
Last Post: jaseela123d
Wink Cross platform IDE for UNIX based C systems. computer science crazy 2 2,220 20-06-2013, 10:35 AM
Last Post: computer topic
  CROSS PLATFORM DATA MIGRATION project report helper 2 1,554 29-11-2012, 03:46 PM
Last Post: Guest
  Platform Virtualization seminar class 1 1,600 07-11-2012, 01:07 PM
Last Post: seminar details
  A Lap around the Azure Services Platform smart paper boy 0 882 02-08-2011, 12:53 PM
Last Post: smart paper boy
  Secure LAN communicator full report smart paper boy 0 1,532 09-07-2011, 10:09 AM
Last Post: smart paper boy
  SmartRetina Generic Gesture Tracking Platform seminar class 0 786 12-05-2011, 10:13 AM
Last Post: seminar class
  Design and program multi-processor platform for high-performance embedded processing seminar class 0 1,170 06-05-2011, 04:40 PM
Last Post: seminar class
  Web Browser as an Application Platform seminar class 0 899 03-05-2011, 03:44 PM
Last Post: seminar class
  A Cross-Layer Framework for Association Control in Wireless Mesh Networks project topics 0 672 02-05-2011, 10:50 AM
Last Post: project topics

Forum Jump: