Author: mes
Date: 2011-11-22 16:13:15 -0800 (Tue, 22 Nov 2011)
New Revision: 27566
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
Log:
now catching and logging random swing exceptions
Modified:
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
===================================================================
---
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
2011-11-22 23:50:47 UTC (rev 27565)
+++
core3/api/trunk/swing-util-api/src/main/java/org/cytoscape/util/swing/JTreeTable.java
2011-11-23 00:13:15 UTC (rev 27566)
@@ -39,7 +39,10 @@
import java.awt.event.MouseEvent;
import java.util.EventObject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
/**
* This example shows how to create a simple JTreeTable component, by using a
* JTree as a renderer (and editor) for the cells in a particular column in the
@@ -53,6 +56,8 @@
*/
public class JTreeTable extends JTable {
private final static long serialVersionUID = 1202339868625600L;
+ private final static Logger logger = LoggerFactory.getLogger(
JTreeTable.class );
+
/** A subclass of JTree. */
protected TreeTableCellRenderer tree;
@@ -260,8 +265,8 @@
try {
super.paint(g);
- } catch (Exception e) {
- //System.err.println("********************");
+ } catch (Throwable e) {
+ logger.debug("random swing exception/error:
",e);
}
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.