문제

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

Thanks.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top