method:getBackground ();return type:Colorcontent:ใช้คืนค่า สีพื้นหลัง ของ componentexample:JButton button = new JButton ( "cancel" ); Color color = button.getBackground ();