It seems to work well, please write SSCCE to show a specific problem:

import java.awt.*; import java.awt.event.*; import javax.swing.JDesktopPane; import javax.swing.JFrame; import javax.swing.JInternalFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.SwingUtilities; public class JInternalFrameDemo { JDesktopPane jdpDesktop; static int openFrameCount = 0; public JInternalFrameDemo() { JFrame frame = new JFrame("JInternalFrame Usage Demo"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
source share