Repaint Manager Demos (Chapter 11)
The source code, demos and examples for the chapter 11 of Filthy Rich Clients are available online. This chapter presents the repaint manager.
Chapter 11 presents two demos, TranslucentPanel and ReflectionPanel The first one is an exercise for the reader showing why and when the user of a RepaintManager is necessary. The second one presents a component that can render real-time reflections of its children. The demo requires QuickTime for Java to add a reflection effect to a QuickTime movie streamed from the web. When QuickTime is not available, the demo reverts to regular Swing components.
Update: The final PDF of the book is available for purchase online \o/
Both screenshots below show what the demo looks like. As you can see, the reflection panel can be used with any component you fancy. All you have to do is add() your component inside the panel and you’re done.





July 23rd, 2007 at 8:21 am
Gotta tell you, FRC is trés cool. Well done, Romain/Chet. Thanks to you guys, Java is nice again (after all the crap with generics, closures and all that BS).
One question though that has nothing to do with FRC. I was reading the acknowledgments and I’ve seen Scott Violet mentioned twice. What’s up with him. He seems to have disappeared….
Thanks,
Radu
July 23rd, 2007 at 11:14 am
Last I knew Scott left (I think it was in January or February) to Google. Hopefully he’s having fun.
I know Shannon Hickey took over his work on JSR-295 (beans binding).
~Todd
July 23rd, 2007 at 11:16 am
That is true, Scott is now at Google. We are actually in the same building. Apparently I’m interning wherever he works :)
July 23rd, 2007 at 11:22 am
Good for him! And for you, Romain :) I wish he kept posting though…
r
July 23rd, 2007 at 11:32 am
Hmmm - you’re interning at Google. Does that make you an extern at Sun?
Chet.
July 23rd, 2007 at 4:26 pm
Ok let say I’m not so smrt.
I can run the refections demo with the QuickTime Video from the command line, but when I run it through NetBeans I get the following exception when the call to makeQTJComponent is made
java.security.AccessControlException: access denied (java.security.AllPermission )
What should I have done?
P.S. Sorry that I have to ask and I hope the book uses small words :(
July 23rd, 2007 at 4:29 pm
I have no idea of what’s happening there. Just replace the call to makeQTJComponent() by new DummyPanel().
July 23rd, 2007 at 8:36 pm
I am still waiting for the book to ship. Boy is it taking forever.
Great work Guys!
-Carl