assembleVNCPipeline(password, screen, canvas);
}
private void assembleVNCPipeline(String password, ScreenDescription screen, BufferedImageCanvas canvas) {
AwtMouseEventSource mouseEventSource = new AwtMouseEventSource("mouse");
AwtKeyEventSource keyEventSource = new AwtKeyEventSource("keyboard");
// Subscribe packet sender to various events
canvas.addMouseListener(mouseEventSource);
canvas.addMouseMotionListener(mouseEventSource);