This is the main class that sets the components and the look and feel:
The problem is that I never seem to be entering the paintEnabledText() method of TestLabelUI, instead it still goes to the paintEnabledText() of the BasicLabelUI class. Although I instruct to go to the TestLabelUI in the TestLookAndFeel class...
Can anybody explain what I'm doing wrong?
posted 7 years ago
Originally posted by Jelle Vandebeeck:
You need to call this method createUI, not createU.
Also, you probably want to call super.initClassDefaults(table) in initClassDefaults() before you call table.putDefaults(defaults).