Here you can find the source of addEditorPaneToOther(JEditorPane[] old, JEditorPane add)
static JEditorPane[] addEditorPaneToOther(JEditorPane[] old, JEditorPane add)
//package com.java2s; //License from project: Open Source License import javax.swing.JEditorPane; public class Main { static JEditorPane[] addEditorPaneToOther(JEditorPane[] old, JEditorPane add) { JEditorPane[] buffer = new JEditorPane[old.length]; System.arraycopy(old, 0, buffer, 0, old.length); buffer[buffer.length - 1] = add; return buffer; }//from ww w .jav a 2 s .c om }