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 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

A Web ____ is a computer that stores Web documents and makes them available to users over the Internet.

A. client B. baseline C. server D. broadband

Computer Science & Information Technology

____ provides a simple way for service providers to describe the basic format of requests to their systems regardless of the underlying protocol.

A. SOAP B. XML C. UDDI D. WSDL

Computer Science & Information Technology

You relate tables to one another by using _______ fields.

A. key B. common C. indexed D. date

Computer Science & Information Technology

In C, a character is stored as an integer value.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology