7

I'd like to create a GUI that displays a tree, some text boxes, buttons, and then as a panel, a fully-functional notebook. Is that possible?

Max
  • 1,036
  • 8
  • 11
  • Try putting a PaletteNotebook where you want it. – ssch Jan 09 '13 at 21:15
  • 1
    Are you sure you want to use GUI-kit? Since the arrival of version 6, more than 5 years ago, this has been been pretty much been obsolete. – Sjoerd C. de Vries Jan 09 '13 at 21:43
  • Well, no, actually. I want to embed it in a GUI constructed in java. I thought I came across a way to do this in the documentation, but I can't find it now. @ssch, thanks I will check that out. – Max Jan 10 '13 at 04:36
  • Maybe with "native Swing": http://djproject.sourceforge.net/ns/index.html But why do you really want to do that and not use CDF right away? – Rolf Mertig Jan 10 '13 at 16:41
  • related: http://mathematica.stackexchange.com/questions/5603/start-mathematica-without-the-menu-bar . the "solution" there is to host an HTML page that contains the CDF object in an HTML View, which I'm sure the Java libraries have. – amr Jan 10 '13 at 19:44
  • @Rolf, in this case I want to execute a complicated set of calculations and then give users an ability to explore the results in an ad hoc manner. Hundreds of symbols are created during the calculation, so I won't be able to predict what they want to know. A notebook would be the perfect object to embed, if it's possible. – Max Jan 17 '13 at 15:47
  • I think I found it! MathSessionPane – Max Jan 17 '13 at 16:06

1 Answers1

6

I realized just now that I never came back and explained how I solved this problem. I used the MathSessionPane class provided in JLink:

https://reference.wolfram.com/language/JLink/tutorial/WritingJavaProgramsThatUseTheWolframLanguage.html#8928

It's not a fully fledged front end like you'd see in Mathematica, but it worked quite nicely.

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
Max
  • 1,036
  • 8
  • 11