• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with custom look and feel implementation

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem with my custom look and feel definition of the LabelUI component.

This is my custom LookAndFeel implementation class:


This is the LabelUI implementation class:


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?

Thnx!!
 
Author
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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).
 
reply
    Bookmark Topic Watch Topic
  • New Topic