[EMAIL PROTECTED] (=?iso-8859-1?q?Landini=20Dario?=) writes:
> Hello, 
> just a question: using the jdk1.3 and ptolemy5.1p1 the
> method setButtons(), in a Histogram class, shows me
> four buttons with three points for each; it's possible
> to write something on them? Or it's possible to show
> the menù bar in a simple, not an application, graph?
> 
> Thanks a lot!!!

I think you mean Ptplot 5.1 here, not Ptolemy5.1p1.  It is fairly
easy to get confused, since Ptplot 5.1p1 is a part of Ptolemy II 1.0.1

The buttons appear in applets, not applications.
Applications usually have menubars, applets don't.

The applets should have little icons in them, not three dots.
If you are getting three dots, then it means that the image files
are not being found?

The histogram demo that is online at
http://ptolemy.eecs.berkeley.edu/java/ptplot5.1p1/ptolemy/plot/demo/Histogram.htm
has the proper icons, and I just downloaded and installed
ptplot5.1p1 and the demo that is included in the installation
at
file:///C:/Program%20Files/Ptolemy/Ptplot%205.1p1/ptolemy/plot/demo/Histogram.htm
also has the proper icons

The code that looks for the icons is in ptolemy/plot/PlotBox.java
            URL img = getClass().getResource("/ptolemy/plot/img/print.gif");
getResource() searches the classpath, so it could be that your
classpath is not set right.

If you want to put text into those buttons, you could modify 
PlotBox.setButtons() to add the text.  Looking at the code, it looks
like it tries to put text in the buttons if the gifs can't be found,
so I'm not sure what's up . . .

-Christopher

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to