List of usage examples for javax.swing JInternalFrame JInternalFrame
public JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
JInternalFrame
with the specified title, resizability, closability, maximizability, and iconifiability. From source file:org.renjin.desktop.MainFrame.java
public MainFrame() { super("Renjin"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JDesktopPane desktop = new JDesktopPane(); desktop.setBackground(new Color(171, 171, 171)); JInternalFrame internalFrame = new JInternalFrame("R Console", true, true, true, true); console = new JConsole(); internalFrame.add(console, BorderLayout.CENTER); internalFrame.setBounds(25, 25, 600, 300); internalFrame.setVisible(true);// w ww . ja va 2s . com desktop.add(internalFrame); add(desktop, BorderLayout.CENTER); setSize(650, 450); setVisible(true); }