Font font = new Font(f.getFontName(),fontstyle,f.getFontHeightInPoints());
setFont(font);
-
+
HSSFColor clr = null;
if (s.getFillPattern() == HSSFCellStyle.SOLID_FOREGROUND) {
setBackground(awtcolor);
+ clr = (HSSFColor)colors.get(new Integer(f.getColor()));
+ if (clr == null) clr = new HSSFColor.BLACK();
+ rgb = clr.getTriplet();
+ awtcolor = new Color(rgb[0],rgb[1],rgb[2]);
+ setForeground(awtcolor);
}
public int getColumnCount() {
- return this.maxcol;
+ return this.maxcol+1;
}
public Object getValueAt(int row, int col) {
HSSFRow r = st.getRow(row);
}
-}
\ No newline at end of file
+}
boolean isurl = false;
if (filename == null) filename = getParameter("filename");
+ System.out.println("filename="+filename);
+ System.out.println("start="+filename.substring(0,7));
if (filename == null || filename.substring(0,7).equals("http://")) {
isurl = true;
if (filename == null) filename = getParameter("url");