Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Need help regarding a chat application problem.

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    2
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help regarding a chat application problem.

    Can anyone please tell me how to send emotions in a chat application built in java using netbeans ?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help regarding a chat application problem.

    Define a protocol where different types of content are described. Have emotion be one of the content types.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jan 2014
    Posts
    2
    My Mood
    Confused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help regarding a chat application problem.

    I'm a bit confused, can you set an example please ? :/

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help regarding a chat application problem.

    A protocol would define every record sent between any two sites.
    The first field in the record would give the type of record being sent.
    Following the the type field would be the data for that type of record.
    Say the type field was a single character:
    E for emotion
    T for text of the message
    Records would end with the newline character: \n

    Sample communications could be:
    EHappy\n
    THow are you doing?\n
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How can i create a chat application
    By Celestine in forum Java Theory & Questions
    Replies: 7
    Last Post: July 28th, 2013, 12:34 PM
  2. Chat application
    By Celestine in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 27th, 2013, 12:22 PM
  3. mobile chat application
    By teemone2001 in forum Java Theory & Questions
    Replies: 1
    Last Post: July 21st, 2011, 03:33 AM
  4. Chat application Sign in Problem (maybe : Exception)
    By aymane-tech in forum Java Networking
    Replies: 1
    Last Post: March 23rd, 2011, 11:01 AM
  5. Chat application problem
    By fembiz in forum Java Networking
    Replies: 1
    Last Post: December 11th, 2009, 05:21 AM