/** * Sets the cell comment * * @param s the comment * @param height the height of the comment box in cells * @param width the width of the comment box in cells */ public void setComment(String s, double width, double height) { comment = s; commentWidth = width; commentHeight = height; if (commentDrawing != null) { commentDrawing.setCommentText(s); commentDrawing.setWidth(width); commentDrawing.setWidth(height); // commentDrawing is set up when trying to modify a copied cell } }
/** * Sets the cell comment * * @param s the comment * @param height the height of the comment box in cells * @param width the width of the comment box in cells */ public void setComment(String s, double width, double height) { comment = s; commentWidth = width; commentHeight = height; if (commentDrawing != null) { commentDrawing.setCommentText(s); commentDrawing.setWidth(width); commentDrawing.setWidth(height); // commentDrawing is set up when trying to modify a copied cell } }