Change Background Color of JFrame | NetBeans getContentPane() method. setBackgroundColor() method. Java Color class from awt package.