if (component instanceof EditorUI) ((EditorUI) component) .setComponentsSize(workingPane.getBounds().width);
    void addComponent(JComponent component)    {        if (component instanceof EditorUI)            ((EditorUI) component)                    .setComponentsSize(workingPane.getBounds().width);        JViewport viewPort = workingPane.getViewport();        viewPort.removeAll();        viewPort.add(component);        viewPort.validate();    }