Example usage for java.awt Window setForeground

List of usage examples for java.awt Window setForeground

Introduction

In this page you can find the example usage for java.awt Window setForeground.

Prototype

public void setForeground(Color c) 

Source Link

Document

Sets the foreground color of this component.

Usage

From source file:Filter3dTest.java

/**
 * Sets full screen mode and initiates and objects.
 *///from  w ww. ja va  2s.  c  o m
public void init() {
    screen = new ScreenManager();
    DisplayMode displayMode = screen.findFirstCompatibleMode(POSSIBLE_MODES);
    screen.setFullScreen(displayMode);

    Window window = screen.getFullScreenWindow();
    window.setFont(new Font("Dialog", Font.PLAIN, FONT_SIZE));
    window.setBackground(Color.blue);
    window.setForeground(Color.white);

    isRunning = true;
}