Cross platform LAN messenger
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nit_cal
Active In SP
**

Posts: 237
Joined: Oct 2009
#1
29-10-2009, 02:47 PM


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 and implimentation 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.

.pdf   Cross platform LAN messenger.pdf (Size: 108.92 KB / Downloads: 270)
Use Search at http://topicideas.net/search.php wisely To Get Information About Project Topic and Seminar ideas with report/source code along pdf and ppt presenaion
Reply
projectsofme
Active In SP
**

Posts: 1,124
Joined: Jun 2010
#2
24-11-2010, 10:52 AM

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
xpQwjSB
Thinking To Register

 
#3
03-10-2014, 12:59 PM

ultram canine side effects - ultram side effects
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

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
  Cross-Domain Privacy-Preserving Cooperative Firewall Optimization Vasudevan313 0 388 24-10-2013, 11:11 PM
Last Post: Vasudevan313
  Gsm-based lan monitoring and controlling system seminar flower 3 1,313 14-06-2013, 09:18 AM
Last Post: study tips
  Cross-Layer Design for Video Transmissions in Metro Passenger Information Systems seminar tips 0 338 13-02-2013, 04:35 PM
Last Post: seminar tips
  Platform Virtualization seminar class 1 1,367 11-02-2013, 10:40 AM
Last Post: Guest
  CROSS-LAYER DESIGN OF AD HOC NETWORKS FOR REAL-TIME VIDEO STREAMING pdf project girl 0 385 17-12-2012, 05:43 PM
Last Post: project girl
  Evaluating Performance of Android Platform Using Native C for Embedded Systems seminar tips 0 339 28-11-2012, 04:18 PM
Last Post: seminar tips
  CROSS-LAYER OPTIMIZATION FOR MULTIMEDIA TRANSPORT OVER MULTICODE CDMA NETWORKS seminar tips 0 363 24-11-2012, 06:33 PM
Last Post: seminar tips
  A Rapidly Deployable Wireless Sensor Platform for Supervising Pollution of Emergency seminar tips 0 435 04-10-2012, 05:40 PM
Last Post: seminar tips
  BODY SENSOR NETWORK – A WIRELESS SENSOR PLATFORM FOR PERVASIVE HEALTHCARE MONITORING seminar flower 0 477 04-10-2012, 11:12 AM
Last Post: seminar flower
  Quality of Service in Wireless LAN Using OPNET MOD full report seminar girl 0 543 18-08-2012, 11:22 AM
Last Post: seminar girl