[kepler-dev] [Bug 4826] intermittent exceptions displaying matrix tokens
bugzilla-daemon at ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Mon Mar 1 21:59:28 PST 2010
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4826
Christopher Brooks <cxh at eecs.berkeley.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Platform|PC |All
Resolution| |FIXED
Target Milestone|2.X.Y |2.0.0
OS/Version|Windows Vista |All
--- Comment #4 from Christopher Brooks <cxh at eecs.berkeley.edu> 2010-03-01 21:59:27 PST ---
Fixed.
The problem was that actor.gui.MatrixPane has a public variable JTable table.
This variable should only be used from within the Swing Event Thread.
The fix is to call SwingUtilities.invokeLater().
One additional issue is that if the matrix is very large, then
the data values are elided to "...". The reason this occurs
is because MatrixPane calls
table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
in its constructor.
If this was changed to AUTO_RESIZE_OFF, then large matrices get
horizontal scrollbars.
I looked into doing this and the problem is that the _pane in MatrixViewer
is only use if the MatrixViewer is placed in a run control panel.
Otherwise, we use the tableau. Getting access to the MatrixPane via
the Tableau looks non-trivial.
I've folded this change into the ptII rel-8-0-beta-2 branch for inclusion
in Kepler-2.0.0 and Ptolemy II 8.0.
--
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Kepler-dev
mailing list