Domanda

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

Thanks.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top