On Wed, 31 May 2006 at 18:07:04, Ian Cheyne wrote:
JInternalFrames can be set to look like a palette on some look and
feels (including Aqua). I have wondered whether it would be possible
to create one of these on the sly and then borrow its title bar for
my own purposes but I couldn't find a way to do that. Does anyone
know if this is feasible.
I used this trick to try to implement floating windows under
JDK1.3; start with
a window and use the JInternal frame to paint its title bar. You
can override
the window's paint method, clip to the area of the internal frame's
title bar,
then tell the internal frame to paint using the window's graphics
object.
It looked pretty good in combination with setting the window
transparent (to get
the rounded corners), but the movement response to dragging the
title bar was awful.