Java Color.getBlue()
Syntax
Color.getBlue() has the following syntax.
public int getBlue()
Example
In the following code shows how to use Color.getBlue() method.
import java.awt.Color;
/*from ww w. j a v a2 s .c o m*/
public class Main {
public static void main(String[] args) {
Color myColor = Color.RED;
System.out.println(myColor.getBlue());
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »