Keeping a Color over a socket
posted 14 years ago
I have a chat server I authored from code I modified from an IBM tutorial. I have a options in a menubar that allow users to change their text color and background color, but I want the color of each individual user to be displayed on every other users display. Right now the option changes all the text to the chosen color from the menubar and I want it to only change that user's text color and not the other users. Right now I am writing user comments to a TextArea. The only solution I could think of was to pass the user color through the socket with the message and use a Canvas or Panel instead of a TextArea so I could set the Color and then draw the message to the Canvas. Does anyone have a better solution?