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...

In the Action Settings dialog box under Action on click which of the following is NOT an option?

A) Hyperlink to B) Run Program C) End Presentation D) None

Computer Science & Information Technology

Which of the following commands can be used to create a BASH variable named CREATOR with the value of Torvalds? 

A. CREATOR=“Torvalds” B. set $CREATOR = “Torvalds” C. CREATOR = “Torvalds” D. var CREATOR as “Torvalds”

Computer Science & Information Technology

Which of the following is a virtual machine manager for Mac OS X?

A. VirtualPC B. Parallels C. Hyper-V D. ESX

Computer Science & Information Technology

The __________ strategy is the choice to do nothing to protect a vulnerability and to accept the outcome of its exploitation.

A. defense B. transference C. mitigation D. acceptance

Computer Science & Information Technology