この投稿のいくつかのアイデアに従って、 JFileChooser の色を変更しようとしていました。
JFileChooser で WindowsPlacesBar の色を変更する
しかし、私はそうすることができませんでした.どのコードが欠落しているかを見つけることができませんでした. 今まで私はこれだけを手に入れました:
UIManager.put("Panel.background", Color.BLACK);
UIManager.put("Button.background", Color.BLACK);
UIManager.put("ComboBox.background", Color.BLACK);
UIManager.put("ComboBox.foreground", Color.WHITE);
UIManager.put("TextField.background", Color.BLACK);
UIManager.put("TextField.foreground", Color.WHITE);
UIManager.put("ToolBar.background", Color.BLACK);
UIManager.put("Viewport.background", Color.BLACK);
UIManager.put("Viewport.foreground", Color.WHITE);
SwingUtilities.updateComponentTreeUI(this);