DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    kevin williams Guest

    2 questions for you gurus


    Ok guys try this one. Im writing a chat client. When a user joins a channel
    and they are the only user in the list I want them to get Operator status,
    do i do this using the
    getItemCount() in awt.list or another method?

    2nd Question. How can I add an integer to a string, such as a user count
    in init() . when a user logs in to the chat it +1 to an integer so I can
    display "total users" on a label. Thanks guys these are some brainscratchers
    for me.
    Kevin Williams
    kwilliams@webquestinc.com

  2. #2
    Paul Clapham Guest

    Re: 2 questions for you gurus

    1st Q: I don't know, depends on your design.

    2nd Q: You want to display "Total users: 42"? If totalUsers is the integer,
    then:

    String labelString = "Total users: " + totalUsers;

    kevin williams <kwilliams@webquestinc.com> wrote in message
    news:39903097$1@news.devx.com...
    >
    > Ok guys try this one. Im writing a chat client. When a user joins a

    channel
    > and they are the only user in the list I want them to get Operator status,
    > do i do this using the
    > getItemCount() in awt.list or another method?
    >
    > 2nd Question. How can I add an integer to a string, such as a user count
    > in init() . when a user logs in to the chat it +1 to an integer so I can
    > display "total users" on a label. Thanks guys these are some

    brainscratchers
    > for me.
    > Kevin Williams
    > kwilliams@webquestinc.com




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links