Create another method that takes the text, x, y, font and color to use when you draw a string.
What will be an ideal response?
```
public void drawSt r ing ( St r ing text , int x , int y ,
Font font , Color c o l o r )
{
// g e t the g r a p h i c s o b j e c t
Graphics g = this . ge tGraphi c s ( ) ;
// s e t the c o l o r
g . s e tCo l o r ( c o l o r ) ;
// s e t the f ont
g . setFont ( f ont ) ;
// draw the s t r i n g
g . drawSt r ing ( text , x , y ) ;
}
```
Rewrite the old drawString() method to call this new method.
```
public void drawStringV2 ( St r ing text , int x , int y )
{
this . drawSt r ing ( text , x , y ,
new Font ( "Ar i a l " , Font .BOLD, 2 4 ) ,
Color .BLACK) ;
}
```
You might also like to view...
A(n) line chart is used to show the proportions of parts to a whole.
Answer the following statement true (T) or false (F)
Which type of remote wireless bridge connection is used to connect multiple LAN segments, or buildings together?
A. segment-to-segment B. multipoint-to-multipoint C. point-to-point D. point-to-multipoint
An ActiveX Control that inserts a ________ button to control which code can at attached and initiates an action when clicked
Fill in the blank(s) with correct word
Which parameter is used with the rcapache2 command to verify that Apache is running?
A. start B. stop C. status D. restart