Component « JInternalFrame « Java Swing Q&A





1. Adding Components in to JInternalFrame    coderanch.com

import javax.swing.*; import javax.swing.JInternalFrame; import java.awt.event.*; import java.awt.*; /* Used by InternalFrameDemo.java. */ public class EnterDataFrame extends JInternalFrame { static int openFrameCount = 0; static final int xOffset = 30, yOffset = 30; public EnterDataFrame() { super("Enter Data", true, //resizable true, //closable true, //maximizable true);//iconifiable //Set up the GUI. JComponent c = (JComponent) this.getContentPane(); c.add(new JButton(), BorderLayout.NORTH); c.add(new JButton(), BorderLayout.CENTER); show(); ...

2. JInternalFrame = heavy weight component?    forums.oracle.com