わたしにはできる:
import javax.swing.*;
public class JInternalFrameDemo implements Runnable
{
public static void main(String[] args)
{
SwingUtilities.invokeLater(new JInternalFrameDemo());
}
public void run()
{
JInternalFrame iFrame = new JInternalFrame("Test 1",
false, false, false, false);
iFrame.setTitle("Test 2");
iFrame.setSize(200, 150);
iFrame.setLocation(10, 10);
iFrame.setVisible(true);
JDesktopPane desktop = new JDesktopPane();
desktop.setOpaque(true);
desktop.add(iFrame);
JFrame frame = new JFrame("Demo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setContentPane(desktop);
frame.setVisible(true);
}
}