Re: Fading window problem



anon03@comcast wrote:

> I am trying to create a simple program that fades a window or dialog
> into view showing some text and then fade out again. Kind of like that
> email notifier in Win XP. I am using the AlphaComposite class and
> things are looking good except for when the program starts. For a split
> second you see a gray colored square on the screen and then it
> disappears quickly, then a panel with a label fades into view, and then
> fades out again. This gray colored square that you see for a second is
> the problem.
>
> I assume that since I am calling show() for the frame it is being drawn
> just before the panel is laid over by the image of the screen which
> slowly fades away so the UI fades into view. How do I get rid of seeing
> the gray square for a split second and just see the panel with the
> label coming into view?

You could possibly set the frame off screen initially then move it back on screen at the appropriate time.
.



Relevant Pages

  • Fading window problem
    ... I am trying to create a simple program that fades a window or dialog ... disappears quickly, then a panel with a label fades into view, and then ... This gray colored square that you see for a second is ... private void jbInit() throws Exception ...
    (comp.lang.java.gui)
  • Re: OT - Google
    ... Everything except the center stuff fades in, instead of popping in. ... Is that supposed to be Kewl? ... Panel? ...
    (rec.outdoors.rv-travel)