Bringing life to Swing desktop applications - teaser 2
Posted by kirillcool on April 28, 2007 at 02:44 PM | Comments (8)
If you were not convinced by the first teaser, here's one more reason to come and hear me and Alex presenting the Bringing Life to Swing Desktop Applications technical session (TS-3414). We will be talking about different techniques to bring your Swing application into the 21st century, and here is a simple implementation of SpotLight for Java desktop applications using the JXLayer:
Note how
The selection is synced with the search string
Only the matching items have rollover effects
The search string is applied on folder change
The selection is synced on icon resize
Soft clip on the selection edges
How much code is it? About 30 lines for the clip painter (half is for the actual translucent gray painting + soft clipping), about 20 lines to keep the selection and search text field in sync and three listeners that call the sync method (about 10 lines in total).
Comments are listed in date ascending order (oldest first) | Post Comment
Really powerful usage of what JXLayer can actually do ...
Great stuff Krill and Alex.. Though i can't make it to JAVA one i am eagerly waiting for ur session pdf and videos.
Posted by: psychostud on April 29, 2007 at 11:30 AM
maybe a small enhacement could be making the intensity of the brightness directly proportional to the degree of match .
Posted by: psychostud on April 29, 2007 at 09:48 PM
coward, now I can't support my excuses anymore :) see you at J1.... ehehe
Posted by: felipegaucho on April 30, 2007 at 04:05 AM
just a question: if we apply SVG to swing, it still being considered Swing application - or it means the Swing container was refactored as a SVG renderer?
because is seems I can produce similar applications in browser since the first version of the svg plugin, several years ago .. .
Posted by: felipegaucho on April 30, 2007 at 04:10 AM
Nice!
Fading out the non matching items, fading them in when the string filter changes and they now match, and it would be just perfect ;)
Posted by: liquid on April 30, 2007 at 05:17 AM
Really nice ! I hope to see a native way to show svg one day...
Posted by: alois on April 30, 2007 at 07:17 AM
That is beautiful, but the way that the whole UI shuffled around when you resized the icons was extremely distracting.
Posted by: rickcarson on May 01, 2007 at 04:29 PM
I still don't get why people even support big icon grid views (much less custom-placed icons). Sure it makes bigger pictures, but I can't make sense of things when they aren't in a simple unidirectional list (except text, I guess). Maybe I'm just strange, though. Beyond that, the demo does seem polished. Nice on the line count.