//packagechapter1; importjava.text.*; importjavax.swing.*; importjava.awt.*; importjavax.swing.event.*; importjava.awt.event.*; importjava.util.*; //packagechapter1; importjava.awt.BorderLayout; importjava.awt.event.*; importjavax.swing.*; publicclassMainFrameextendsJFrame { private