Lijuan's update of the color palette portation to java.