diff options
author | Javen O'Neal <onealj@apache.org> | 2016-07-17 11:45:40 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2016-07-17 11:45:40 +0000 |
commit | b0b38d2c11645659975ac271e6ee9a53691dc8b8 (patch) | |
tree | c64639f72eba640bf3ef310ce3dc1cd68a5df367 /src/examples | |
parent | b85400423d4b0551550baa98e836545e08fa773f (diff) | |
download | poi-b0b38d2c11645659975ac271e6ee9a53691dc8b8.tar.gz poi-b0b38d2c11645659975ac271e6ee9a53691dc8b8.zip |
bug 59264,59833,59837: upgrade deprecated methods in examples and testcases
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/hssf/view/SVTableCellEditor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/src/org/apache/poi/hssf/view/SVTableCellEditor.java b/src/examples/src/org/apache/poi/hssf/view/SVTableCellEditor.java index 5a1aca6e97..6c1552e54f 100644 --- a/src/examples/src/org/apache/poi/hssf/view/SVTableCellEditor.java +++ b/src/examples/src/org/apache/poi/hssf/view/SVTableCellEditor.java @@ -38,6 +38,7 @@ import org.apache.poi.hssf.usermodel.HSSFCellStyle; import org.apache.poi.hssf.usermodel.HSSFFont; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.util.HSSFColor; +import org.apache.poi.ss.usermodel.FillPatternType; /** * Sheet Viewer Table Cell Editor -- not commented via javadoc as it @@ -143,7 +144,7 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd Font font = new Font(f.getFontName(),fontstyle,fontheight); editor.setFont(font); - if (style.getFillPattern() == HSSFCellStyle.SOLID_FOREGROUND) { + if (style.getFillPatternEnum() == FillPatternType.SOLID_FOREGROUND) { editor.setBackground(getAWTColor(style.getFillForegroundColor(), white)); } else editor.setBackground(white); |