I am using java 8.2. Upon this code, how can I set background color for the opposite row?
- UIDefaults defaults = UIManager.getLookAndFeelDefaults();
- if (defaults.get("Table.alternateRowColor") == null) {
- defaults.put("Table.alternateRowColor", new Color(252, 242, 206));
- }
I want the opposite row different from default color. Now it's white.