Revision: 14836
http://gate.svn.sourceforge.net/gate/?rev=14836&view=rev
Author: markagreenwood
Date: 2011-12-22 07:52:02 +0000 (Thu, 22 Dec 2011)
Log Message:
-----------
check that there is a component in the cell before trying to determine it's
height (in the same way we do for it's width)
Modified Paths:
--------------
gate/trunk/src/gate/swing/XJTable.java
Modified: gate/trunk/src/gate/swing/XJTable.java
===================================================================
--- gate/trunk/src/gate/swing/XJTable.java 2011-12-22 02:19:21 UTC (rev
14835)
+++ gate/trunk/src/gate/swing/XJTable.java 2011-12-22 07:52:02 UTC (rev
14836)
@@ -168,7 +168,7 @@
if(tColumn.getPreferredWidth() < minWidth)
tColumn.setPreferredWidth(minWidth);
//now fix the row height
- int height = cellComponent.getPreferredSize().height;
+ int height = (cellComponent == null ? 0 :
cellComponent.getPreferredSize().height);
if(newRowHeight < (height + spacing.height))
newRowHeight = height + spacing.height;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs