Java Swing Tutorial - Java SystemColor DESKTOP








Syntax

SystemColor.DESKTOP has the following syntax.

public static final int DESKTOP

Example

In the following code shows how to use SystemColor.DESKTOP field.

import java.awt.SystemColor;

public class Main {
  public static void main(String[] args) {
     System.out.println(SystemColor.DESKTOP);

  }
}

The code above generates the following result.