SpringGUI

introduction    download    reference    examples    faq


Reference

Name

setAllForegrounds(), setAllBackgrounds()

Examples

// Create a button named "myButton1" and one named "myButton2"
gui.addButton("myButton1", "I am a button", 10, 10, 200, 25);
gui.addButton("myButton2", "I am another button", 10, 40, 200, 25);
// Set the foreground and background color of all existing elements.
gui.setAllForegrounds(255,255,255);
gui.setAllBackgrounds(0,0,0);

Description

set the foreground and background colors of all existing elements, respectively.

Syntax

gui.setAllForegrounds(r, g, b);
gui.setAllForegrounds(c);
gui.setAllBackgrounds(r, g, b);
gui.setAllBackgrounds(c);

Parameters

int r, int g, int b The new RGB color for all elements.
color c The new color for all elements.

Returns

nothing

Related

setForeground(), setBackground()


back to the top of the page


tinkering with codetools and docsscrapbookabout