Pergunta

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

Thanks.

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top