how to change background color of Jframe

htt‮www//:sp‬.lautturi.com
how to change background color of Jframe
mainFrame.getContentPane().setBackground(Color.BLUE);
Created Time:2017-09-09 22:42:57  Author:lautturi