3
$\begingroup$

I want to run Mathematica from an external Java program and display an interactive app in my own Jpanel. Is it possible?

When I tried using MathGraphicsJpanel, I am getting only the snapshot of the app. I want to access the controls in my app.

For example, when I tried the following command Manipulate[Plot[x^a, {x, 10, 100}], {a, 1, 3}], I am getting only this picture.

enter image description here

Is it even possible to get the Interactive ui of Mathematica in external java programs?

$\endgroup$
  • $\begingroup$ IIRC, the panel is not interactive, it's a display portal only. $\endgroup$ – ciao Oct 6 '15 at 0:47
  • $\begingroup$ Can you clarify whether you are "running Mathematica" from an external java program or whether you have a "JLink connection to a Mathematica Kernel"? $\endgroup$ – halirutan Oct 6 '15 at 2:13
  • $\begingroup$ I am new to Mathematica. I think I am running Mathematica from an external program via kernel link. I am using the following as reference. reference.wolfram.com/language/JLink/tutorial/… $\endgroup$ – Prashanth Oct 6 '15 at 2:44
  • $\begingroup$ Duplicate question, but not a duplicate answer: mathematica.stackexchange.com/q/17526/12 I don't think it can be done in a reasonably robust way. But who knows? $\endgroup$ – Szabolcs Oct 6 '15 at 9:18
  • $\begingroup$ The link tells about embedding whole notebook. I need only the dynamic content. Embedding CDF matches with what I want but, I don't know if CDF can be embedded to Jpanel ? $\endgroup$ – Prashanth Oct 7 '15 at 2:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.