Here you can find the source of makeRandomColor()
public static Color makeRandomColor()
//package com.java2s; //License from project: Open Source License import java.awt.Color; import java.util.Random; public class Main { public static Color makeRandomColor() { Random random = new Random(); return new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256)); }/* www. java 2 s. com*/ }