-1

How can I display the content of a JInternalFrame while dragging this component in a JDesktopPane?

Thanks.

David Kroukamp
  • 36,155
  • 13
  • 81
  • 138
jts
  • 715
  • 7
  • 22

1 Answers1

2

Try:

desktop = new JDesktopPane();
desktop.setDragMode(JDesktopPane.LIVE_DRAG_MODE);

As per docs:

public static final int LIVE_DRAG_MODE

Indicates that the entire contents of the item being dragged should appear inside the desktop pane.

David Kroukamp
  • 36,155
  • 13
  • 81
  • 138