// Stage D: responding to a click of a button.
// Barry Cornelius, 19 June 2000
import java.awt.    BorderLayout;
import java.awt.    Container;
import javax.swing. JButton;
import javax.swing. JFrame;
import javax.swing. JTextField;
public class GetDateProg
{
   public static void main(final String[] pArgs)
   {
      final JFrame tJFrame = new JFrame("GetDateProg: Stage D");
      final JTextField tJTextField = new JTextField("hello", 35);
      final JButton tJButton = new JButton("Get Date");
      final JButtonListener tJButtonListener = new JButtonListener();
      tJButton.addActionListener(tJButtonListener);
      final Container tContentPane = tJFrame.getContentPane();
      tContentPane.add(tJTextField, BorderLayout.NORTH);
      tContentPane.add(tJButton, BorderLayout.SOUTH);
      tJFrame.pack();
      tJFrame.setVisible(true);
   }
}
