protected void setUp() throws Exception {
super.setUp();
doc = new PlainDocument();
doc.insertString(0, "line1\nline2\nline3", null);
root = doc.getDefaultRootElement();
view = new FlowViewImplWithFactory(root, View.Y_AXIS, new FlowFactory()) {
private int count = 0;
@Override
protected View createRow() {
return new BoxView(getElement(), X_AXIS) {