25262728293031
drawingArea.setBackground(Color.white); content.add(drawingArea); frame.pack(); frame.setVisible(true); Win7TouchDevice device = Win7TouchDevice.forCanvasInFrame(frame, drawingArea); }