From: Javen O'Neal Date: Sun, 17 Jul 2016 11:45:40 +0000 (+0000) Subject: bug 59264,59833,59837: upgrade deprecated methods in examples and testcases X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9133eaa1477fcf9587c44e43d69658d3e1fbf0f5;p=poi.git 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 --- 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);