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

Which of the following will create a polygon that is a square?

Consider the Java code segment below: ``` Polygon poly2 = new Polygon(); poly2.addPoint(100, 30); poly2.addPoint(100, 130); ``` a. poly2.addPoint(100, 60); poly2.addPoint(100, 130); b. poly2.addPoint(200, 130); poly2.addPoint(200, 30); c. poly2.addPoint(200, 60); poly2.addPoint(200, 130); d. poly2.addPoint(100, 130); poly2.addPoint(100, 230);

Computer Science & Information Technology

What is a disadvantage of centralized authentication?

What will be an ideal response?

Computer Science & Information Technology