Try:
desktop = new JDesktopPane();
desktop.setDragMode(JDesktopPane.LIVE_DRAG_MODE);
public static final int LIVE_DRAG_MODE
Indicates that the entire contents of the item being dragged should appear inside the desktop pane.
Pergunta
How can I display the content of a JInternalFrame
while dragging this component in a JDesktopPane
?
Thanks.
Solução
Try:
desktop = new JDesktopPane();
desktop.setDragMode(JDesktopPane.LIVE_DRAG_MODE);
public static final int LIVE_DRAG_MODE
Indicates that the entire contents of the item being dragged should appear inside the desktop pane.