Console messenger. How to anticipate if the user is writing something or just waiting for messages

Ads

 
 

Share on Google+Share on Google+

MOH ben
Console messenger. How to anticipate if the user is writing something or just waiting for messages
0 Answer(s)      5 years and 5 months ago
Posted in : Java Beginners

A console that acts as messenger. The app is Client/Server architecture. The app look for a messenger from other host and shows it as soon as receives it. The question is how to know that the user is typing a message or not because if the user is typing a message, the recieved message will interrupt him.

Example: I am writing "How are you?" I received a message that contains "Long time have not seen you."

Result into (screenshot):

How arHong time have not seen you. e you?

show what the input will be??? and how to override over this problem Thanks

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Adv. Help! Console messenger. How to anticipate if the user is writing something or just waiting for messages
Console messenger. How to anticipate if the user is writing something or just waiting for messages  A console that acts as messenger. The app... it as soon as receives it. The question is how to know that the user is typing
Need help writing a console program
Need help writing a console program  I need help cant seems to figure it out! Write a program that consists of three classes. The first class will be the actual program. The second class will simply convert a string to lower
Advertisements
Need in desperate help in writing a console program
Need in desperate help in writing a console program  Write a console program that repeatedly prompts the user to enter data until they type done (any...) sorted by the first dimension. Example: User types: apple Apple Zone apple
Need in desperate help in writing a console program
Need in desperate help in writing a console program  Write a console program that repeatedly prompts the user to enter data until they type done (any...) sorted by the first dimension. Example: User types: apple Apple Zone apple
Need in desperate help in writing a console program
Need in desperate help in writing a console program  Write a console program that repeatedly prompts the user to enter data until they type done (any...) sorted by the first dimension. Example: User types: apple Apple Zone apple
Is It Possible To Make $5,000 By Writing Just One Article?
Is It Possible To Make $5,000 By Writing Just One Article... of tasks. Article writing can also provide huge perks and upward trends to your bank... in today's times. General writers as well as specialist medical writers just can't
how to clear r console
how to clear r console  Hi, I doing experiment on the RGui in R Programming language. I have done a lot of experiment and now the console is full of log. Now I want to clear r console. how to clear r console? Thanks  
How to make one waiting thread for lock - Java Beginners
How to make one waiting thread for lock  Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread
How to close R Console?
How to close R Console?  Hi, I am inside R console. How to close R Console? Thanks   Hi, R Console is used to run the R Program. You can write and test R Programs here. If you wish to close the session then type: q
How to capture output from console into textarea in java?
How to capture output from console into textarea in java?  Hi, I would like to know how can we display the result of a program in java into a textarea instead of displaying it on console. Thanks
Version of messenger>messenger dependency
List of Version of messenger>messenger dependency
CONSOLE
CONSOLE  system.out.formt();...how it works...?   System: It is a class made available by Java to let you manipulate various operating... class. Standard output is, on most operating systems, console output. format
How to clear dos screen just like cls in dos - Java Beginners
How to clear dos screen just like cls in dos  You said we have to write bat bile. so every time i have to call that file in my java program am i... are waiting for this... i searched in internet.. but i didn't get the correct
How to set Messages number to be read in pop3 mail server
How to set Messages number to be read in pop3 mail server  how to set messages number in pop3, i am able to read only 250 mails from my inbox where as my inbox has more than 1000 unread mails, how to read all at once in pop3
MSN Web Messenger
MSN Web Messenger       MSN Web Messenger lets you talk online and in real-time with friends and family using just a web browser! Use it on any shared computer - at school, at work
How to open a window from a java program (from code)[ (onclick of something text )]
How to open a window from a java program (from code)[ (onclick of something text )]  When I download the code an put it in Eclipse, the applet is run, but on click of the button displayed in the applet, a new window with google
How to set Messages number to be read in pop3 mail server
How to set Messages number to be read in pop3 mail server  How to set Messages number to be read in pop3 mail server, i am able to read only 250..., how can i read all those Thanks in advance
i want to type the intput in the output console box how?
i want to type the intput in the output console box how?  i want to type the intput in the output console box how
How to prompt user
How to prompt user  Dear Sir, I'm a new student, a beginner in Java. Pls help to write program as below :- a)to prompt user to input 2 integers, the 1st number entered as Digit 1 and 2nd number as Digit 2. b)Display the value
How to read password from the console
Description: Console class was introduced in jdk 1.6. This class help in taking the input from the console using its readPassword method . Here in this sample program it will ask to feed the password. Note it will accept the password
How to make your web writing persuasive?
How to make your web writing persuasive?   ... the desired effect upon the user. If you want that your web writing to be acted... of writing should be such that the user should feel that he/she is being given
Waiting for ur quick response
Waiting for ur quick response  Hi, I have two different java programs like sun and moon. In both of these two programs i have used same class name... is the solution for this problem? and how will i get the output "Hai"? Please any
How to read and display password from the console
Description: Console class was introduced in jdk 1.6 This class help in taking the input from the console using its readPassword method . Here...;cons.readPassword(format, "Enter", "user",    
How to read user input in C++
How to read user input in C++  How can i get an input from the users in C++?   You can use the standard input "cin" to get the input from user.. For example: int age; cin >> age
How to promote your writing through your website
How to promote your writing through your website       You are a writer? Are you fed up with how... choices online. How can you make your home page user friendly? A page is user
how to find which user has modified the file
how to find which user has modified the file  how to find which user has modified the file
how to create a user registration form in php
how to create a user registration form in php  how to create a user registration form in php
Get the error messages displayed
Get the error messages displayed  How to get the error messages displayed
Artifacts of messenger
List of Artifacts of messenger maven depenency
Version of commons-messenger>commons-messenger dependency
List of Version of commons-messenger>commons-messenger dependency
Version of plexus-messenger>plexus-messenger dependency
List of Version of plexus-messenger>plexus-messenger dependency