MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Nested Dialogs

  • To: mathgroup at
  • Subject: [mg80270] Re: Nested Dialogs
  • From: David Bailey <dave at>
  • Date: Thu, 16 Aug 2007 04:46:37 -0400 (EDT)
  • References: <f91jmn$7m0$> <f96j1g$q2k$> <f9s3bd$a5v$>

Albert wrote:
> Hi David,
>> It hangs for me too. You can create nested (Java) dialog boxes with my 
>> free SuperWidgetPackage. For example:
>> Needs["SuperWidgetPackage`"]
>> l2[_] := {"Level 2", SuperWidgetButton[Null, "Ok", 1]} //
>>     SuperGUIRunModal;
>> {"Level 1", {SuperWidgetButton[Null, "Deeper", l2],
>>     SuperWidgetButton[Null, "OK", 1]}} // SuperGUIRunModal
> thanks for your answer, I was already thinking that I would have to go 
> for something else if I insist on modal dialogs. I have done this 
> successfully with direct access to Java-Swing-Widgets via JLink, but of 
> course that will not give me the possibility to use all the new dynamic 
> stuff within the dialog, which is what I'm really after. Do you know a 
> way to embed something like a Manipulate in a Swing-Dialog? Are you 
> planning to incorporate something like this in the Super-Widgets? I for 
> one can't imagine that it's possible, but you for sure have gained more 
> insight to these matters when working on the SWP...
> cheers,
> albert
You can build up something equivalent to a simple Manipulate using the 
SWP - much as you can build up code equivalent to a Manipulate using the 
simpler Mathematica primitives like Slider (SuperWidgetHorizontalSlider 
using the SWP). Manipulating graphics in Java is not as fast as with a 
notebook because there is a somewhat larger overhead sending the 
graphics to Java, but for many purposes it is adequate.

By a process of convergent evolution, many of the SWP primitives are 
somewhat similar to their Mathematica counterparts, and the entire SWP 
is based on Swing.

David Bailey

  • Prev by Date: Re: Evaluating a convolution integral in Mathematica
  • Next by Date: Re: Evaluating a convolution integral in Mathematica
  • Previous by thread: Re: Nested Dialogs
  • Next by thread: Documentation Center (v6): do-it-yourself Mathematica Book