Example usage for javax.swing JDesktopPane setBackground

List of usage examples for javax.swing JDesktopPane setBackground

Introduction

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

Prototype

@BeanProperty(preferred = true, visualUpdate = true, description = "The background color of the component.")
public void setBackground(Color bg) 

Source Link

Document

Sets the background color of this component.

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);//from   w  w  w  . j a va2s.  c  o  m

    desktop.add(internalFrame);

    add(desktop, BorderLayout.CENTER);

    setSize(650, 450);
    setVisible(true);
}