Example usage for java.awt SystemColor menuText

List of usage examples for java.awt SystemColor menuText

Introduction

In this page you can find the example usage for java.awt SystemColor menuText.

Prototype

SystemColor menuText

To view the source code for java.awt SystemColor menuText.

Click Source Link

Document

The color rendered for the text of menus.

Usage

From source file:Main.java

public static void main(String[] a) {
    Color[] sysColor = new Color[] { SystemColor.activeCaption, SystemColor.activeCaptionBorder,
            SystemColor.activeCaptionText, SystemColor.control, SystemColor.controlDkShadow,
            SystemColor.controlHighlight, SystemColor.controlLtHighlight, SystemColor.controlShadow,
            SystemColor.controlText, SystemColor.desktop, SystemColor.inactiveCaption,
            SystemColor.inactiveCaptionBorder, SystemColor.inactiveCaptionText, SystemColor.info,
            SystemColor.infoText, SystemColor.menu, SystemColor.menuText, SystemColor.scrollbar,
            SystemColor.text, SystemColor.textHighlight, SystemColor.textHighlightText,
            SystemColor.textInactiveText, SystemColor.textText, SystemColor.window, SystemColor.windowBorder,
            SystemColor.windowText };

    for (Color c : sysColor) {
        System.out.println(c);/*w ww .  j  a va2  s  .c  o  m*/

    }

}

From source file:com.naval.gui.Gui.java

public void initialize(boolean gameMode) throws IOException {
    frame = new JFrame("Naval Simulation");

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    frame.setSize(800, 700);/*w w  w  .  ja  v  a2 s .  c  om*/

    /*
     * We have a menu bar only in game mode
     */
    menuFac = new MenuBarFactory(this);
    frame.setJMenuBar(menuFac.createMenuBar());
    frame.setBackground(SystemColor.menu);
    frame.setForeground(SystemColor.menuText);

    layoutFrame();

    frame.setVisible(true);
    System.out.println(Config.getRepTravail());
}