Hi Chris, et al
Chris Uppal said:
I'd say that if you /can/ use Swing instead of raw AWT (and most people can),
then Swing's to be preferred. The simplicity of AWT is mainly just from stuff
that's missing, rather than because it has an inherently neater API.
Even though I /can't/ do Swing, I'll make a point of looking up Sun's
tutorial on the matter and giving it a go. (The fact that I "can't do" Java,
HTML, JavaScript, or CSS hasn't stopped me so far; how hard can it be? : -)
Actually it's all looking shit-hot at the moment and I'm quite pleased with
the results of this functionality demo/proof-of-concept I've been working
on!)
But before launching into Swing there is one niggle or possible
spanner-in-the-works I'd like to quiz you about, and that is "footprint"
both in terms of memory and bandwidth of a Swing evoking class. In my case
I'm using an Applet that does little more user interaction than pop-up a
couple of dialog boxes before handing control over to the web browser and
html, and find AWT to be a stream-lined gazelle-like creature (albeit
three-legged) and fear Swing could be more like an elephant. Are my fears
ill-founded? Are all the class libraries in the JVM anyway so don't have to
be sent over the network? Will my Class and JAR files be roughly the same
size? Is relative resource consumption (or body mass index) an issue?
Richmond's about 25 miles downstream from me as the crow flies -- or about 40
as
the corpse floats ;-) So I daresay I'm responsible for some of the
detritus...
Yes, I thought that was your Christmas tree I saw floating down with the
others each year. (Not to mention the black rubbish bags that people would
leave out on the tow-path only to have the high-tide take them away :-( Why
"The Royal Borough of Richmond Upon Thames" had yet to discover wheely-bins
is beyond me.) All that aside, you live in a nice part of the world! I miss
the Daffs, Crocuses, and cherry-blossoms this time of the year! The drive
through Richmond park to take the kids to school was also pleasant, as was
driving out through Surrey/Sussex. Henley/Marlow obviously worth a lunch.
Still, it was swnowing there recently, wasn't it? As much as the kids used
to love tobogganing down to Petersham gate, it's almost April and still 30C
here so cop that!
Cheers Richard Maher
PS. I bet you that if I knew what I was doing I wouldn't find the fact that
there's only NSEW and Center such a limitation
PPS. If I was holding a series of say employee photographs/images as blobs
in a database, can anyone tell me how I would get one of them up into a
web-browser without first having to export it to a .jpeg/.bmp/.gif file? I
must have missed something? I know http servers/browsers are optimized to
have seperate threads for uploading images but nonetheless, what's the
alternative? Can I pass an BufferedImage back from an applet to Javascript?
(And then what would it do with it without a SRC="#something"?)