Write the lines of code that will define a compound border using three borders. Use a line border on the inner edge, an etched border on the outer edge, and a raised bevel border in between.

What will be an ideal response?

```
//create borders
Border line = BorderFactory.createLineBorder (Color.blue);
Border bevel = BorderFactory.createRaisedBevelBorder();
Border etched = BorderFactory.createEtchedBorder();

// create inner compound border
Border compound = BorderFactory.createCompoundBorder
(bevel, line);

// create final compound border
Border final = BorderFactory.createCompoundBorder
(etched, compound);
```

Computer Science & Information Technology

You might also like to view...

Draw a UML class diagram that shows the relationships among the elements of exercise 9.7.

What will be an ideal response?

Computer Science & Information Technology

What are the rules for naming a variable?

What will be an ideal response?

Computer Science & Information Technology