question: public BezierDemo ( ) { initComponents ( ) ; canvas = new Canvas ( ) ; canvas . setOpaque ( true ) ; canvas . setBackground ( Color . WHITE ) ; canvas . addMouseListener ( handler ) ; canvas . addMouseMotionListener ( handler ) ; add ( canvas , BorderLayout . CENTER ) ; Point2D . Double [ ] d = { } ; BezierPath digi = new BezierPath ( ) ; digi . addPolyline ( Arrays . asList ( d ) ) ; Example ex = new Example ( ) ; examples . add ( ex ) ; ex . digitized = digi ; ex . error = 2d ; }
target:  Creates new form BezierDemo 