]> source.dussan.org Git - poi.git/commitdiff
bug 59264,59833,59837: upgrade deprecated methods in examples and testcases
authorJaven O'Neal <onealj@apache.org>
Sun, 17 Jul 2016 11:45:40 +0000 (11:45 +0000)
committerJaven O'Neal <onealj@apache.org>
Sun, 17 Jul 2016 11:45:40 +0000 (11:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753061 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/hssf/view/SVTableCellEditor.java

index 5a1aca6e9713d52d4edfbf6e3feb60c5792081cd..6c1552e54fe1b2408a731d8441671596616cca8e 100644 (file)
@@ -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);