Create a method that will add a cartoon type word balloon to your picture.
What will be an ideal response?
```
public void addWordBalloon ( int upperX , int upperY ,
int width , int height ,
String message ,
Color backG , Color fontColor ,
int endX , int endY)
{
Graphics g = this . getGraphics ( ) ;
// set the background color
g . setColor (backG ) ;
// draw the ellipse
g . fill Oval ( upperX , upperY , width , height ) ;
// draw the lines from bottom of ellipse to end
int midX = upperX + ( width / 2 ) ;
int botY = upperY + height ;
int leftX = midX - 5 ;
int rightX = midX + 5 ;
int [ ] xArray = {leftX , rightX , endXg ;
int [ ] yArray = {botY , botY , endYg ;
g . fill Polygon ( xArray , yArray , 3 ) ;
// change to font color
g . setColor ( fontColor ) ;
g . drawString (message , upperX + 20 ,
upperY + ( height / 2 ) ) ;
}
```
You might also like to view...
The navigation bar is a series of hyperlinks
Indicate whether the statement is true or false
A(n) ________ chart displays a horizontal representation of categorical data
Fill in the blank(s) with correct word
You can hide a portion of a picture you don't want to be seen by cropping it. _________________________
Answer the following statement true (T) or false (F)
What two files below are the first two BASH environment files to be executed??
A. ?/etc/profile B. ?/etc/bashrc C. ?˜/.bashrc D. ?˜/.bash_profile