Jython : python for java
I wrote a script on python, that I would like to integrate with my java application.
I have read about the integration of python and java called jython, so I installed the last version, imported the python networkx module i needed and now I am able to run my python script with jython via the comand line.
But what I would like it is to retrieve values from variables inside my python scripts to use them in my java swing interface. I will use this variables to build a real time graph of the variables with the java plot.
Now, how this integration works? how I can call this variable values from my jython script and use them in java? I dont find the answer on the net.