In Java, you can change the colors to match your corporate brand or other color scheme. Theme file is stored as a Java properties file in the specified format. You can change any or all of these properties before you set the look and feel. Here is coding that explains the same :
Code:
UIManager.put("nimbusFocus", new Color(...));
UIManager.put("nimbusRedGrey", new Color(...));
UIManager.put("control", new Color(...));
for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels() {
if ("Nimbus".equals(info.getName())) {
UIManager.setLookAndFeel(info.getClassName());
break;
}
}
Bookmarks