Is it possible to include Spark code in my Swing app?


I have a swing app and I would like to know if it is technically (and legally) possible to include Spark app into my app.

Like to have a “Spark.jar” file to insert in my Java project, and to have a button “Start Talking” that would call something like “new Spark(domain,user,password)” to connect in my OpenFire server automatically with user/password and start communicating…

Thanks for any help,