Hello,
we have the following problem using WindowBuilderPro:
We have designed our own subclasses of nearly every Java-Swing-Control. These subclasses get information about their current LookAndFeel from our LookAndFeel-Factory, which in turn is instantiated at runtime with a concrete user-defined Non-Standard-Java-LookAndFeel using reflection. This works fine for all of our applications, as our main-methods always start with something like
- read class name for concrete Non-Standard-Java-LookAndFeel from xml-file
- instantiate a this class
- pass this new object to a LookAndFeel-Factory which can supply it to our subclassed user-defined Swing-Controls
Is there any possibility to get this user-defined piece of code executed when starting WindowBuilderPro or even when opening a new Panel-Class?
We would need something like a "startUp" or "tearDown" in JUnit-Tests which also allows reading in those configuration-entries.
Our current workaround is to hard-code one Non-Standard-Java-LookAndFeel in our LookAndFeel-Factory which is supplied to the user-defined Swing-Controls used in WindowBuilderPro.
Best regards,
Christian Kemmer