-
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
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks