Toolkit: getColorModel()
/* * Output: Color model = DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0 */ import java.awt.Toolkit; public class MainClass { public static void main(String[] args) { Toolkit tk = Toolkit.getDefaultToolkit(); System.out.println("Color model = " + tk.getColorModel()); } }