|
Replies:
8
-
Last Post:
Apr 30, 2007 12:30 AM
by: chris_e_brown
|
|
|
|
|
|
|
Outlook style popup that fades slowly
Posted:
Apr 26, 2007 8:56 PM
|
|
|
How can we build a outlook style window that has fading effects? Every time a new email arrives, it pops up and slowly fades away. I need build something similar. Can we really make a JWindow translusent by setting the alpha somehow? I looked at the SwingX components, I could not find any that works this way. SwingX lets me set the alpha on a JXPanel but not on a window. So, I was wondering if anybody is working on this kind of window.
|
|
|
|
|
|
|
|
|
Re: Outlook style popup that fades slowly
Posted:
Apr 27, 2007 12:14 AM
in response to: tvmohan
|
|
|
I think Jide has an outlook style popup window, but I don't know if it fades away. Anyway, you should have a look at: https://jide-oss.dev.java.net/
-peter
On 27.04.2007, at 05:56, jdnc-interest@javadesktop.org wrote:
> How can we build a outlook style window that has fading effects? > Every time a new email arrives, it pops up and slowly fades away. I > need build something similar. Can we really make a JWindow > translusent by setting the alpha somehow? I looked at the SwingX > components, I could not find any that works this way. SwingX lets > me set the alpha on a JXPanel but not on a window. So, I was > wondering if anybody is working on this kind of window. > [Message sent by forum member 'tvmohan' (tvmohan)] > > http://forums.java.net/jive/thread.jspa?messageID=214568 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net > For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
--------------------------------------------------------------------- To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
|
|
|
|
|
|
|
|
Re: Outlook style popup that fades slowly
Posted:
Apr 27, 2007 6:44 AM
in response to: Peter Weishapl
|
|
|
|
|
Also take a look at the jtoaster project
On 4/27/07, Peter Weishapl <petw@gmx.net> wrote: > > I think Jide has an outlook style popup window, but I don't know if > it fades away. > Anyway, you should have a look at: https://jide-oss.dev.java.net/ > > -peter > > On 27.04.2007, at 05:56, jdnc-interest@javadesktop.org wrote: > > > How can we build a outlook style window that has fading effects? > > Every time a new email arrives, it pops up and slowly fades away. I > > need build something similar. Can we really make a JWindow > > translusent by setting the alpha somehow? I looked at the SwingX > > components, I could not find any that works this way. SwingX lets > > me set the alpha on a JXPanel but not on a window. So, I was > > wondering if anybody is working on this kind of window. > > [Message sent by forum member 'tvmohan' (tvmohan)] > > > > http://forums.java.net/jive/thread.jspa?messageID=214568 > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net > > For additional commands, e-mail: jdnc-help@jdnc.dev.java.net > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net > For additional commands, e-mail: jdnc-help@jdnc.dev.java.net > > [att1.html]
|
|
|
|
|
|
|
|
Re: Outlook style popup that fades slowly
Posted:
Apr 27, 2007 9:31 AM
in response to: tvmohan
|
|
|
JNA is a very good start. At the Extreme GUI Makeover session at JavaOne, I'll show a cool effect with fading windows. Hopefully we'll release the code very soon ^^
|
|
|
|
|
|
|
|
Re: Outlook style popup that fades slowly
Posted:
Apr 29, 2007 2:11 AM
in response to: chris_e_brown
|
|
|
Thankyou every one. I appreciate it. I will start looking into JNA. It looks very exciting.
|
|
|
|
|
|
|
|
Re: Outlook style popup that fades slowly
Posted:
Apr 29, 2007 8:50 PM
in response to: tvmohan
|
|
|
In case JNA turns out not to meet your needs (?) here's the basic algorithm:
1. Grab a snapshot of the screen where the pop-up is to appear, place it in a buffered image 2. Draw your pop-up to another buffered image 3. Draw your pop-up to the screen 4. To fade: blend the pop-up image with the snapshot image you first took, with the snapshot nearly 100% transparent, then repaint the result to the pop-up screen area (use double-buffering to reduce flicker if you want). Then sleep for a few milliseconds and repeat, until the snapshot is 0% transparent (100% opaque).
|
|
|
|
|
|
|
|
Re: Outlook style popup that fades slowly
Posted:
Apr 30, 2007 12:30 AM
in response to: sinewalker
|
|
|
Don't use Thread.sleep() as you'll block the event-dispatching thread. Use a Swing timer or look at https://timingframework.dev.java.net/
|
|
|
|
|