String appName = UIManager.getString("OptionPane.titleText");
UIManager.put("Button.background", Color.RED);This code sets the background color of all buttons in the current look and feel to red. The put() method is used to modify the default value for a specified key. The javax.swing.UIManager class is part of the Java Standard Library, specifically the Java Platform Standard Edition (Java SE) package.