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
This commit is contained in:
parent
a478687281
commit
9133eaa147
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user