d.append(columns[0]); for (int i=1; i < columns.length; i++) { d.append(","); d.append(columns[i]); }
d.append(columns);
    public void write(Device d)	throws IOException    {	SFrameSet frameSet = (SFrameSet)getContainer();	if (frameSet.getParent() == null) {	    String language = "en"; // TODO: ???	    String title = frameSet.getTitle();	    d.append("<?xml version=\"1.0\" encoding=\"");	    d.append(frameSet.getSession().getCharSet());	    d.append("\"?>\n");	    d.append("<!DOCTYPE html\n");	    d.append("   PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\n");	    d.append("   \"DTD/xhtml1-frameset.dtd\">\n");	    d.append("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"");	    d.append(language);	    d.append("\" lang=\"");	    d.append(language);	    d.append("\">\n");	    d.append("<head>\n<title>");	    d.append(title);	    d.append("</title>\n");	    d.append("</head>\n");	    d.append("<frameset rows=\"*,10\" frameborder=\"0\" noresize=\"noresize\" scrolling=\"no\">\n");	}	d.append("<frameset");	if (columns != null && columns.length > 0) {	    d.append(" cols=\"");	    d.append(columns[0]);	    for (int i=1; i < columns.length; i++) {		d.append(",");		d.append(columns[i]);	    }	    d.append("\"");	}	if (rows != null && rows.length > 0) {	    d.append(" rows=\"");	    d.append(rows[0]);	    for (int i=1; i < rows.length; i++) {		d.append(",");		d.append(rows[i]);	    }	    d.append("\"");	}	d.append(">\n");	Iterator iterator = components.iterator();	int i=0;	while (iterator.hasNext()) {	    Object component = iterator.next();	    if (component instanceof SFrameSet)		((SFrameSet)component).write(d);	    else if (component instanceof SFrame)		writeFrame(d, (SFrame)component, (Properties)constraints.get(i));	    else		break;	    i++;	}	d.append("</frameset>\n");	if (frameSet.getParent() == null) {	    frameSet.getSession().getReloadManager().clearDirtyComponents();	    writeFrame(d, (SFrame)frameSet.getSession().getReloadManager().getManagerComponent(), null);	    /*	    d.append("<frame name=\"")		.append(frameSet.getSession().getReloadManager().getTarget())		.append("\" />");	    */	    d.append("</frameset>\n");	}    }