Main.java :  » REST » tabulasoftmed » main » Java Open Source

Java Open Source » REST » tabulasoftmed 
tabulasoftmed » main » Main.java
package main;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import org.softmed.rest.admin.file.FileManagerProxy;
import org.softmed.rest.admin.httpMethods.HTTPMethodEditor;
import org.softmed.rest.admin.mediaType.MediaTypeChooser;
import org.softmed.rest.admin.mediaType.MediaTypeEditor;

public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {
    
    try {
//        UIManager.setLookAndFeel(
//          "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
        
//        "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

       UIManager.setLookAndFeel(
                  UIManager.getSystemLookAndFeelClassName());
      
//       UIManager.setLookAndFeel(
//                  UIManager.getCrossPlatformLookAndFeelClassName());


      } catch (UnsupportedLookAndFeelException e) {
//        ...
      } catch (ClassNotFoundException e) {
//        ...
      } catch (InstantiationException e) {
//        ...
      } catch (IllegalAccessException e) {
//        ...
      }
    
    FileManagerProxy fileManagerProxy = new FileManagerProxy();
    
    ConfigurationManagerProxy configurationManagerProxy = new ConfigurationManagerProxy(fileManagerProxy);
    configurationManagerProxy.getConfigurationManager().setConfigFilePath("RESTConfiguration.xml");
    
    
    
    RESTEditor editor = new RESTEditor();
    editor.setConfigurationManager(configurationManagerProxy);
    editor.setFileManager(fileManagerProxy);

  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.