Foreground and Background Dialog Boxes
You use the Foreground and Background dialog boxes to set
the background and foreground (font) colors of Visual Java
components and windows.
There are three ways that you can use the editor to choose
colors:
- Scrollbars
You can use the red, green, and blue scrollbars to adjust
RGB values to create custom colors for your backgrounds and
foregrounds. Move the sliders/thumbs to the right to increase
the value for each color. The values corresponding to the
slider/thumb position are displayed in the text field to the
right of the scrollbar.
- Red, green, blue text fields
You can type integer values directly into the text fields
to the right of the three scrollbars. Press Return to
enter the value. The sliders/thumbs adjust accordingly.
- Closest color dialog box
Click on the dialog button at the right of the text field
to display a list of named colors. Double-click on a name from
the list to choose it.
When you choose a color value using either of the three
methods, the editor provides you with following feedback:
- Scrollbar sliders move to reflect the RGB values.
- The numbers to the right of the scrollbars change to
indicate their decimal values.
- The name of the closest
standard RGB color is displayed in the "closest color" field.
- The real color text field displays the hexadecimal RGB
value for the color unless it is an exact match for one of
the predefined, named colors in the "closest color" list, in
which case the color's name is displayed.
- The color as it will appear in the application is displayed
in the pane at the bottom of the editor.
Click the Use Default Color button to reset the value to the default (gray74).
See also:
- Visual Java Overview
- The Visual Menu
- Visual Java Components
- Laying Out GUI Interfaces
- Generating Java Source Code
- Adding Operations (Filters and
Actions)
- Visual Java Runtime Classes
- Creating Menus
- Adding Custom Components and Windows
- Using Groups and Shadows (Basic)
- Using Groups and Shadows (Advanced)
- Visual Java API Documentation
- Visual Java
Runtime Packages
- Class
Hierarchy
- Index of
all Fields and Methods