0

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());
mKorbel
  • 109,525
  • 20
  • 134
  • 319
ShaggyInjun
  • 2,880
  • 2
  • 31
  • 52

1 Answers1

4
UIManager.put("TreeUI", "EzTreeUI");
camickr
  • 321,443
  • 19
  • 166
  • 288
  • 1
    @ShaggyInjun should be full_path, then same as for Class, Resources Icon (1mio times asked here) – mKorbel Mar 10 '13 at 15:14