views:

304

answers:

2
A: 

This can be a little bit tricky. When you need semitransparent border it will be pain. If not, it is easy. Just use popup with appropriate components and mouse listener to listen on mouse events occurred over active borders.

Rastislav Komara
+1  A: 

I would perhaps look at using JXLayer for this. It looks like what you're trying to do here is paint some context outside the of component's bounds. This is the kind of thing JXLayer excels at.

Tom Martin
+1 for JXLayer; and a shameless plug for example - my still in WIP project at http://code.google.com/p/jchronos/ - on the homepage, you can see there is a rounded form with shadow around it; and thanks to Romain Guy(www.curious-creature.org)
ring bearer