Creating an Internal Frame

boolean resizable = true; boolean closeable = true; boolean maximizable = true; boolean iconifiable = true; int width = 200; int height = 50; JInternalFrame iframe = new JInternalFrame("", resizable, closeable, maximizable, iconifiable); iframe.setSize(width, height); // Add component to internal frame. // Add internal frame to desktop. JDesktopPane desktop = new JDesktopPane(); desktop.add(iframe);

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.