How to change the LookAndFeel of the NetBeans Platform Framework Application
===

I cannot figure out how to change the LookAndFeel of the application I built on the NetBeans platform framework, can anybody please help? I want to change its look using the TinyLAF java api [http://www.muntjak.de/hans/java/tinylaf/index.html][1]. I know how to change the LookAndFeel when developing a regular Swing application in the NetBeans IDE, but not when developing it on the NetBeans Platform framework.

This is the code, for TinyLAF, that I use for regular Swing applications:

    Toolkit.getDefaultToolkit().setDynamicLayout(true);
    System.setProperty("sun.awt.noerasebackground", "true");
    JFrame.setDefaultLookAndFeelDecorated(true);
    JDialog.setDefaultLookAndFeelDecorated(true);
    
    try {
        UIManager.setLookAndFeel("de.muntjak.tinylookandfeel.TinyLookAndFeel");
    } catch(Exception ex) {
        ex.printStackTrace();
    }

TinyLaF looks for a default theme file named 'Default.theme' (case-sensitive). If it finds one, this file will be loaded at startup. 
(The 'Default.theme' file is an ordinary TinyLaF .theme file, just with a special name, you can take any .theme file and rename it to 'Default.theme'). 

TinyLaF will search the following URLs: 

 1. TinyLookAndFeel.class.getResource("/Default.theme");
 - finds 'Default.theme' if it is inside tinylaf.jar
 2. Thread.currentThread().getContextClassLoader().getResource("Default.theme");
 - finds 'Default.theme' if it is inside your application's JAR
 3. new File(System.getProperty("user.home"), "Default.theme").toURI().toURL();
 - finds 'Default.theme' if it is inside the home directory
 5. new File(System.getProperty("user.dir"), "Default.theme").toURI().toURL();
- finds 'Default.theme' if it is inside the working directory

**Please note that my question is not how to change the LookAndFeel of the NetBeans IDE,  but how to do it for the Java Application built on top of NetBeans Platform framework.** 


  [1]: http://www.muntjak.de/hans/java/tinylaf/index.html