For this purposes you can use UIManager , it contains Constants for colors of Components. For example:
UIManager.put("Button.foreground", Color.RED);
UIManager.put("TextField.background", Color.BLACK);
UIManager.put("ProgressBar.selectionBackground", Color.WHITE);
All Constants you can find in google