Overriding LookAndFeel
问题 Hello I am trying to change the colors of my swing progress bar in java. Initially I tried using the following code: UIManager.put("ProgressBar.selectionBackground", Color.black); UIManager.put("ProgressBar.selectionForeground", Color.white); UIManager.put("ProgressBar.background", Color.white); UIManager.put("ProgressBar.foreground", Color.RED); m_progressBar.setBackground(Color.BLACK); m_progressBar.setForeground(Color.red); But none of the commands seemed to have any effect!!! Unless I set