aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2018-02-25 17:06:19 +0000
committerPJ Fanning <fanningpj@apache.org>2018-02-25 17:06:19 +0000
commit4ad4d76241eae44386e52c3a23ca1b7ca28d1458 (patch)
treee7150276cac477f7f7987d1fe1dffbc335e90d98 /src/examples
parent02719ac4ba076b0f4d4246794c7f5bae86123bcf (diff)
downloadpoi-4ad4d76241eae44386e52c3a23ca1b7ca28d1458.tar.gz
poi-4ad4d76241eae44386e52c3a23ca1b7ca28d1458.zip
[bug-62055] Fix XSSFImportFromXML table resize. Thanks to Leonard Kappe. This closes #99
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1825315 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/xssf/usermodel/examples/CreateTable.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreateTable.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreateTable.java
index e1905f5be2..d1acce5f72 100644
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreateTable.java
+++ b/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreateTable.java
@@ -75,9 +75,9 @@ public class CreateTable {
}
}
// Create the columns
- table.addColumn();
- table.addColumn();
- table.addColumn();
+ table.createColumn("Column 1");
+ table.createColumn("Column 2");
+ table.createColumn("Column 3");
// Set which area the table should be placed in
AreaReference reference = wb.getCreationHelper().createAreaReference(