scrollPane.setMinimumSize(new Dimension(900, 670));
scrollPane.setMaximumSize(new Dimension(1980, 1980));
// create panels
// add printing stuff
vista = new JComponentVista(editorPane, new PageFormat());
JPanel topPanel = new JPanel();
topPanel.add(searchLabel);
topPanel.add(searchField);
topPanel.add(searchButton);