Attached windows

On Swing/AWT, is it possible to create “attached windows” i.e. the WinAmp player/equalizer/playlist windows ?

Well, the docs don’t say anything, so I don’t think so… But it could be a nice feature.

no, its not possible.

But you can emulate it yourself.

I don’t think there is any support for that in the native UI toolkits either… I’m pretty sure that WinAmp,etc use custom code to keep the windows “attached” manually.

as far as I know windows does support this.

On Linux you can emulate it but its not that fast since:
-> First window is moved by one pixel (context is at x-server)

  • Application gets notified that its window was moved (1 context switch)
  • Invalidated background windows are repainted (1-? cs)
    -> Second window is moved by application itself
  • Invalidated background windows are repainted (1-? cs)

So its doable for 2-3 windows but more feel really sluggish and ugly. So the best thing you can call this is a hack and I don’t think java dev’s want to expose a hack in their apis.

lg Clemens