ShaggyInjun
ShaggyInjun

Reputation: 2973

custom ui delegates for TreeUI

For some reason, my TreeUI doesn't get applied. I am using MetalTheme and want to customize the TreeUI. So, I started by copying the TreeUI code and renaming the class EzTreeUI. Am I doing this right ? None of the commands below work. When I debug and step over the statements below, UIManager.getDefaults().get("TreeUI"); still returns javax.swing.plaf.metal.MetalTreeUI.

UIManager.getDefaults().put("TreeUI", EzTreeUI.class.getName());
UIManager.put("TreeUI", EzTreeUI.class.getName());

Upvotes: 0

Views: 184

Answers (1)

camickr
camickr

Reputation: 324197

UIManager.put("TreeUI", "EzTreeUI");

Upvotes: 4

Related Questions