NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Need urgent help -integration of javafx and netebeans platform application

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Sankey198



Joined: 13 Apr 2012
Posts: 8
Location: Pune

PostPosted: Wed May 02, 2012 4:07 am    Post subject: Need urgent help -integration of javafx and netebeans platform application Reply with quote

We need urgent help of any of yours.

Our objective is to integrate iReport[Netbeans Platform application] Application with JavaFX.
So First we compile iReport Source code using following link:

http://jasperforge.org/uploads/publish/ireportwebsite/IR%20Website/ir_compiling_ireport.html


Then for integration purpose[invoke iReport application from our application], we override startup point
org.netbeans.core.startup.Main with our custom startup class and then handle control back to netbeans like this.

System.out.println("JavaFX Integration - Button clicked...");
// once you're done with that, hand control back to NetBeans
ClassLoader classloader = Thread.currentThread().getContextClassLoader();
Class<?> mainClass;
try {
mainClass = Class.forName(NB_MAIN_CLASS, true, classloader);
Object mainObject = mainClass.newInstance();
Method mainMethod = mainClass.getDeclaredMethod("main", new Class[]{String[].class});
mainMethod.invoke(mainObject,(Object)params);
} catch (Exception ex) {
ex.printStackTrace();
}


but i think some of the iReport modules not launching due to this indirect startup. Do you have an idea behind not launching some of
the modules?

Thanks for your time and patience.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo