jaxe.Preferences.chargerPref();
//System.out.println(new File ("config/JaxeConfig.xml").exists());
jaxeDocument = new JaxeDocument ("config/JaxeConfig.xml");
jaxeTextPane = new JaxeTextPane (jaxeDocument, this);
jaxeDocument.setTextPane(jaxeTextPane);
//jaxeDocument.nouveau();
jaxeDocument.lire(xmlFile.toURL());
this.add(jaxeTextPane);
But I get the error "No config file found for <rootelement> "
But I am able to create a new document of this grammar using this config in jaxe editor standalone version !
May I know what is the problem ?
Thanks
NS Gopikrishnan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
My java code is :
xmlFile = new File (xmlFile_);
jaxe.Preferences.chargerPref();
//System.out.println(new File ("config/JaxeConfig.xml").exists());
jaxeDocument = new JaxeDocument ("config/JaxeConfig.xml");
jaxeTextPane = new JaxeTextPane (jaxeDocument, this);
jaxeDocument.setTextPane(jaxeTextPane);
//jaxeDocument.nouveau();
jaxeDocument.lire(xmlFile.toURL());
this.add(jaxeTextPane);
But I get the error "No config file found for <rootelement> "
But I am able to create a new document of this grammar using this config in jaxe editor standalone version !
May I know what is the problem ?
Thanks
NS Gopikrishnan
Ok :)
Now the problem is solved !
I was supposed to have the config file name with a name ending with <_config.xml> :O