Changing the colors of a JOptionPane

Main.java:

import javax.swing.event.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
 
public class Main extends JFrame
{
   public static void main(String []args) {
      UIManager.put("OptionPane.background", Color.blue);
      UIManager.put("Panel.background", Color.blue);
      UIManager.put("Button.background", Color.white);
 
      String value = JOptionPane.showInputDialog("Enter your name");
      System.out.println("Hello " + value); 
 
      // exit awt thread
      System.exit(1);
   }
}