@Test
public void testDrawRect() throws InterruptedException, InvocationTargetException {

	
	painter = new Painter() {
		
		@Override
		public void paint(SwingCanvas canvas) {
			RSRect r = canvas.getClipBounds();
			r.left += 20;
			r.top += 20;
			r.right -= 20;
			r.bottom -= 20;
			
			canvas.drawRect(r.left, r.top, r.right, r.bottom, paint);
		}
	};
	uiLiaison.repaint();
	
	Thread.sleep(5000);
}