Hi
I'd like to set in the dbTreeView bean the selected row background color. How can this be accomplished?
Regards,
Gabi Boros wrote:hi,
in which application type? for web it should work be overriding the CSS used for selection color, in the smart client it uses the color from the active LAF
var foregroundColor = new Packages.javax.swing.plaf.ColorUIResource(Packages.java.awt.Color.decode('#00ffff'));
var backgroundColor = new Packages.javax.swing.plaf.ColorUIResource(Packages.java.awt.Color.decode('#ff0000'));
var uiDefaults = Packages.javax.swing.UIManager.getDefaults();
uiDefaults.put("Tree.selectionBackground", backgroundColor);
uiDefaults.put("Tree.selectionForeground", foregroundColor);
Users browsing this forum: No registered users and 11 guests