Revision: 5740 http://sourceforge.net/p/jump-pilot/code/5740 Author: edso Date: 2018-04-06 14:11:45 +0000 (Fri, 06 Apr 2018) Log Message: ----------- keep the icon when detaching frame
Modified Paths: -------------- core/trunk/src/org/openjump/core/ui/swing/DetachableInternalFrame.java Modified: core/trunk/src/org/openjump/core/ui/swing/DetachableInternalFrame.java =================================================================== --- core/trunk/src/org/openjump/core/ui/swing/DetachableInternalFrame.java 2018-04-06 14:08:09 UTC (rev 5739) +++ core/trunk/src/org/openjump/core/ui/swing/DetachableInternalFrame.java 2018-04-06 14:11:45 UTC (rev 5740) @@ -22,6 +22,7 @@ import javax.swing.plaf.basic.BasicInternalFrameUI; import com.vividsolutions.jump.I18N; +import com.vividsolutions.jump.workbench.ui.GUIUtil; /** * A detacheable JInternalFrame. DetachableInternalFrame extends JInternalFrame @@ -171,6 +172,9 @@ // create a new JFrame instance with the content of the internalframe detachedFrame = getFrame(); + // keep icon of frame + detachedFrame.setIconImage(GUIUtil.toImage(this.getFrameIcon())); + // on closing the detached JFrame, we attach it back to the application // so we define it here detachedFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel