Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何JInternalFrame在拖动此组件时显示内容JDesktopPane?
JInternalFrame
JDesktopPane
谢谢。
尝试:
desktop = new JDesktopPane(); desktop.setDragMode(JDesktopPane.LIVE_DRAG_MODE);
根据文档:
public static final int LIVE_DRAG_MODE 指示被拖动项目的全部内容应显示在桌面窗格内。
public static final int LIVE_DRAG_MODE
指示被拖动项目的全部内容应显示在桌面窗格内。