public static void main(String[] args)
  {
    if (System.getProperty("os.name").indexOf("Mac") == -1)
    {
      try {
          for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
              if ("Nimbus".equals(info.getName())) {
                  UIManager.setLookAndFeel(info.getClassName());
                  break;
              }
          }
      } catch (Exception e) {
          // If Nimbus is not available, you can set the GUI to another look and feel.
      }
    }
    
    JPopupMenu.setDefaultLightWeightPopupEnabled(false);

    
    Tasks.loadSettings();
    
    sketch = new Sketch();
    mainFrame = new MainFrame();
    mainFrame.setLocationRelativeTo(null);
    
    try {
    Library.i().scan();
    } catch (Exception e) { e.printStackTrace(); }
    
    Library.i().computeMissingHashes();
    Library.i().fixModelFileNames();
    Library.i().cacheThumbnails();
    Library.i().deleteUselessThumbnails();
    
    libraryFrame = new LibraryFrame();
    libraryFrame.getModel().add(Library.i().getModels());
    libraryFrame.getModel().refresh();
    libraryFrame.showMe();
    
    resizeModelFrame = new ResizeModelFrame();
    replaceColorFrame = new ReplaceColorFrame();
    preferencesFrame = new PreferencesFrame();
    
    preferencesFrame.showMe();
    //Main.mainFrame.setVisible(true);
  }