Re: I'm looking for a good web-based java chat applet
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 09:53:55 GMT
On Fri, 30 Sep 2005 13:01:53 +1000, "bort" <spam@xxxxxxxx> wrote or
quoted :
>I quite like this coolsmile one (www.coolsmile.net) but i don't like the way
>it defaults to blue text.. and when you select other colours (e.g. black)
>your text can't be seen if someone has a black background. We don't like to
>encourage ppl to use colour on our server, but don't want to strip it out
>altogether, server-side, either.
>
>If I knew anything about java it's open source adn I would be able to remove
>the colour options altogether i guess.
There are two sorts of colours in a Java Applet. The Applet did not
get very far so I don't even know for sure if it is AWT or Swing. I
suspect AWT.
Some are burned into the program. The choices have nothing to do with
the Java language. These are purely the colours the Applet author
liked. There are three ways you could change them:
1. get the program source from the author. Change the colour numbers.
See http://mindprod.com/jgloss/colour.html for the colour numbers --
same as HTML. Just look for new Color(...) or Color.xxxx
2. decompile the source, change the colour numbers, recompile.
See http://mindprod.com/jgloss/decompiler.html
3. patch the color numbers in the class file. This is quite bit
harder. See http://mindprod.com/jgloss/jasm.html
The other colours are the colours of the frames and widgets. These in
Swing are controlled by the Look and Feel. You can change that by
adding one line of code to the program to select a different
L&F/skin.. You must decompile/recompile to do that or get the source.
See http://mindprod.com/laf.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- References:
- Prev by Date: Re: I'm looking for a good web-based java chat applet
- Next by Date: Re: Why no SSCCEs?
- Previous by thread: Re: I'm looking for a good web-based java chat applet
- Index(es):
Relevant Pages
|