Internal Frames Performance tip
by, 04-26-2012 at 08:55 PM (1264 Views)
When various internal frames are present in a desktop, it might be noticed by the user that they move slowly. This problem could be avoided by using outline dragging. With help of outline dragging, just internal frame’s outline is painted at the current position of mouse while internal frame dragging. Innards of internal frames couldn’t be repainted, at new positions, unless dragging is stopped. Default behavior known as live dragging is to repaint or reposition few or all internal frames in a continuous manner while moving; this could be a real slow thing if various internal frames are present in a desktop.
JDesktopPane method setDragMode* can be used for outline dragging. E.g: