Example usage for javax.swing JInternalFrame JInternalFrame

List of usage examples for javax.swing JInternalFrame JInternalFrame

Introduction

In this page you can find the example usage for javax.swing JInternalFrame JInternalFrame.

Prototype

public JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable,
        boolean iconifiable) 

Source Link

Document

Creates a JInternalFrame with the specified title, resizability, closability, maximizability, and iconifiability.

Usage

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);
}