if (useScroll) {
KongaScrollPane scroll = new KongaScrollPane(p);
scroll.makeInconspicuous();
canvas.add(scroll, BorderLayout.CENTER);
if (addMouseListener) {
scroll.addMouseListener(new ContextMenuTrigger());
}
page.setEditorBorder(Empty.border());
} else {
if (addMouseListener) {
p.addMouseListener(new ContextMenuTrigger());