Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2289
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: GUIKit query |
| Date | 2011-05-11 08:28 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iqdhb2$1aq$1@smc.vnet.net> (permalink) |
| References | <iqbb7t$jm5$1@smc.vnet.net> |
On 10/05/2011 13:31, p.ramsden wrote:
> After many years, I'm finally getting to grips with GUIKit. I've
> solved nearly all the problems with the little application I'm
> developing, except one. I want, essentially, to mock up a widget
> equivalent of a FileNameSetter: that is, a "Browse..." button whose
> action is to launch a FileDialog. Something along the lines of
>
> ref = GUIRunModal[
> Widget["Panel",
> WidgetGroup[{Widget["Label", {"text" -> "Source notebook"}],
> Widget["Button", {"text" -> "Browse...",
> BindEvent["action",
> Script[GUIRunModal[Widget["FileDialog"]]]]}]},
> WidgetLayout -> Column]]]
>
>
> But this totally fails to work: launching a widget from within a
> widget isn't cool, it seems. The messages are
>
>
> GUIKit`Widget::deferr: =AB JavaObject[javax.swing.JFileChooser]=BB is not
> valid GUI definition content.>>
>
>
> GUIRunModal::nvalid: The GUI definition contains invalid content.>>
>
>
> I can't escape the conviction that I must be being very dim. Can
> anyone put me out of my misery?
>
Philip,
I know you know this already, but the real answer is to use my Super
Widget Package (free from my site). I developed this as a simple,
non-quirky way to construct serious Java GUI's inside Mathematica.
Unlike the GUIKit, it also comes with some half-decent documentation!
David Bailey
http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
GUIKit query "p.ramsden" <p.ramsden@imperial.ac.uk> - 2011-05-10 12:31 +0000
Re: GUIKit query David Bailey <dave@removedbailey.co.uk> - 2011-05-11 08:28 +0000
Re: GUIKit query "p.ramsden" <p.ramsden@imperial.ac.uk> - 2011-05-12 08:34 +0000
Re: GUIKit query David Bailey <dave@removedbailey.co.uk> - 2011-05-12 11:26 +0000
csiph-web