public static void main(String[] args) throws Exception {
  digestCommandLineArguments(args);
  boolean inHeadlessMode=GraphicsEnvironment.isHeadless();
  boolean inConvertMode=isinConvertMode();
  SCXMLGraphEditor editor=startEditor(inConvertMode || inHeadlessMode);
  if (isinConvertMode()) {
    SCXMLEditorActions.convertNoGUI(editor);
  }
 else   if (!inHeadlessMode) {
    String input=getPresetInput();
    if (!StringUtils.isEmptyString(input)) {
      OpenAction open=new OpenAction(new File(input));
      open.actionPerformed(new ActionEvent(editor,0,""));
    }
  }
}

public static void main ( String [ ] args ) throws Exception { digestCommandLineArguments ( args ) ; boolean inHeadlessMode = GraphicsEnvironment . isHeadless ( ) ; boolean inConvertMode = isinConvertMode ( ) ; SCXMLGraphEditor editor = startEditor ( inConvertMode || inHeadlessMode ) ; if ( isinConvertMode ( ) ) { SCXMLEditorActions . convertNoGUI ( editor ) ; } else if ( ! inHeadlessMode ) { String input = getPresetInput ( ) ; if ( ! StringUtils . isEmptyString ( input ) ) { OpenAction open = new OpenAction ( new File ( input ) ) ; open . actionPerformed ( new ActionEvent ( editor , 0 , "" ) ) ; } } }
main of the editor application . creates the fsmeditor that is a customgraphcomponent ( jscrollpane ) contains an instance of customgraph ( mxgraph that is mxeventsource ) ) create the interface containing the customgraphcomponent : fsmeditor ( fsmgrapheditor ( jpanel ) )
