| Article: |
Hacking Swing: Translucent Windows | |
| Subject: | Nice but the flashing makes it impractical | |
| Date: | 2005-11-16 08:39:50 | |
| From: | AriShap | |
|
The application flashing (hide and show) every time it gains/loses focus is really annoying and makes this scheme not realistic for any real application. I don't understand why we have to hide and show the frame. Why can't we just update the background, and the next time paintComponent is called it will use the new background image? Why do we need to actually hide and show the frame?
|
||
Showing messages 1 through 1 of 1.
-
RE: Nice but the flashing makes it impractical
2005-11-29 15:39:16 dataxpress [View]
The reason we have to hide() the jframe is so that we can see the background. The method used to capture the screen captures exactly what you see-- if we didn't hide the jframe, it would show up. Instead of hiding the window, you could move it so that it is outside of it's own coordinates, and the move it back-- but this would probably be just as annoying if not more annoying than simply hiding and unhiding it.


