how to set output in java android studioo code example Example: how to set frame colo in java getContentPane().setBackground(Color.YELLOW); //Whatever color