gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] (no subject)


From: Benja Fallenstein <address@hidden>
Subject: [Gzz-commits] (no subject)
Date: Sun, 14 Jul 2002 20:32:37 -0400

Update of /cvsroot/gzz/gzz/gzz/client/awt
In directory subversions:/tmp/cvs-serv5317

Modified Files:
        AWTScreen.java 
Log Message:
Ah. So. I see.

Here's why I've had so many problems with Gzz just showing me
grey windows (i.e., windows with nothing but grey in them).
Once upon a time, there was a Screen that inherited from Canvas
(or Component or some such). Then there was a FrameScreen that
inherited from Screen and created a Frame and put itself into
that frame, which was strange and ugly and twisted.

However, there was an inspired soul who went on to disuglify
them client classes, and this soul made the Canvas something
the Screen held as an instance variable, just as the FrameScreen
held the Frame as an instance variable. This was a great and
powerful solution, but alas, alack, unfortunately, the
inspired soul forgot to copy them methods into the Canvas subclass
that had formerly graced the Screen class as overloaded methods
of the Canvas (or Component or Whatever) class; namely
the paint() and update() methods.

So these poor two methods had to remain in Screen, which was
called AWTScreen by this time, lonely and simple and even though
paint() was still called by them other Screen classes, update()
sat there alone and never ever received a single call.

Now this was sad for update(), but alas, alack, the inherent
problems were bigger, as paint() was now not ever called by the
mighty AWT. Instead, Canvas.paint() was used on the poor windows,
a method which most uglily merely ereases the background of the
Canvas proper, thusly and thereforely leaving me with dull, grey
windows devoid of any content.

Fortunately, by moving them poor paint() and update() methods
back where they belong, I was able to obtain an effect that
more than pleased my most humble self: repaint the windows now
immediately do when other windows are moved away that had
been obstructing them. Never again shall my windows show me
a mere and ugly grey, waiting for me to press a key to make
their content shown again, lest I get angry and hit me head
against the wall in utter frustration and bore.

Let us hope that it will be so happily every after.
gzz/gzz/client/awt AWTScreen.java,1.9,1.10
Sun Jul 14 20:32:37 EDT 2002



reply via email to

[Prev in Thread] Current Thread [Next in Thread]