Write a program to plot the following face.

.

Provide a class FaceViewer and a class FaceComponent.

Complete the following file:

FaceComponent.java

import javax.swing.JComponent; import java.awt.Graphics; import java.awt.Graphics2D; . . . /** Draws a face. */ public class FaceComponent extends JComponent { public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; . . . } }

Use the following file:

FaceViewer.java

import javax.swing.*;

public class FaceViewer
{
   public static void main(String[] args)
   {
      JFrame frame = new JFrame();

      frame.setSize(300, 400);
      frame.setTitle("FaceViewer");
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

      FaceComponent component = new FaceComponent();
      frame.add(component);

      frame.setVisible(true);
   }
}