Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Using BarChart in a Widget

  • To: mathgroup at
  • Subject: [mg56479] Re: Using BarChart in a Widget
  • From: David Bailey <dave at>
  • Date: Tue, 26 Apr 2005 21:52:34 -0400 (EDT)
  • References: <d4kl1t$edj$>
  • Sender: owner-wri-mathgroup at

If you replace the symbol BarChart with:


you can make the widget work!

The GUIKit is supposed to move all the Global symbols inside scripts 
into a private context. BarChart is in the context Graphics`Graphics` - 
so why it is moving it I don't know, but I checked and that is what is 

It is precisely because of problems like that that I wrote my (free) 
Super Widget Package (available from This 
package uses GUIKit, but presents a much simpler interface to the user, 
who need know nothing about Java, J/Link, or even GUIKit. You can also 
mix SuperWidgets with the ordinary kind. Using my package, your widget 
would be created using:

SuperWidgetGraphicsPanel[Null, BarChart[{0, 1, 2},
      DisplayFunction -> Identity]] // SuperGUIRun

Note that you don't need to embed an extra Needs inside Super Widgets. 
Furthermore, by adding one option to SuperWidgetGraphicsPanel you could 
get mouse-click feedback in Mathematica graphics coordinates.

Contact me if you would like to discuss this further.

David Bailey

  • Prev by Date: Re: Compile. Not again
  • Next by Date: Re: Working with huge text files with mathematica
  • Previous by thread: Using BarChart in a Widget
  • Next by thread: Re: Using BarChart in a Widget