Here you can find the source of decodeColor(int color)
public static Color decodeColor(int color)
//package com.java2s; //License from project: Open Source License import java.awt.*; public class Main { public static Color decodeColor(int color) { return new Color(color, color > 0xFFFFFF); }// ww w. j a v a2s.c o m }