// Hints for Programming Project 2.19 (page 106). //******************************************************************** 1) You should at least draw 4 balloons 2) In the paint method set the background color to white. 3) Draw the strings of color black: Set the color black. page.setColor (Color.black); call the method drawLine(X1, X2, Y1, Y2) Example: page.drawLine (90, 100, 100, 300); 4) Draw the balloons: Set a different color for every baloon, eg. page.setColor (Color.blue); Use fillOval(x1, y1, width, height), to draw the baloon shape. Eg., page.fillOval (70, 40, 40, 60); You should notice three things: - The height should be larger than the horizontal width to give the balloon a real shape. - The sum of (height + y1) = Y1. In the eg. above, 40 + 60 = 100 In other words, the height of the balloon is the difference between the y=coordinate of the hihger point of the string and the y-coordinate of the upper-left corner of the rectangle that contains the oval (i.e: second argument of the fill-oval). - all strings have same ending point. } }