Hi, That looks like the toString() method of Plot is being called? You could try putting a breakpoint in Plot.toString() or else modify Plot.java and add a toString() method that throws an exception and see where it is being called.
You might have a look at the Java Tutorial on tables: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html I think that Cell Renderers for Objects end up calling the toString() method of the Object, which is what is happening here. You could try using the Ptplot exportPNG patch at http://ptolemy.eecs.berkeley.edu/java/ptplot/exportPNG-0.0.1.patch.gz to create an image and put that in the cell instead. I'm not sure if you can directly render a Plot as a table cell, but I did not look very hard at the tutorial. _Christopher -------- Hi, I would like to embed a ptolemy.plot.Plot inside a JTable cell but am having trouble doing so. The cell displays but give this string error message inside the cell: ptolemy.plot.Plot[, 0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=null,alignmentY=nu ll,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] Is this a feasible thing to do with a ptolemy plot? Any pointers to code that would help me understand / solve this problem would be greatly appreciated. I am using ptolemyII 4.0.1 if this information is useful. Thank you, Michael --------------------------------------------------------------------------- - Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED] -------- ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]