import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
 

Figure 1