Understanding Java   Chapters  01  02  03  04  05  06  07  08  09  10  11  12  13  14  15  16  17  18  19  20  21

Understanding Java: Chapter 13

These pages contain links to the programs that are developed in Chapter 13. The title of this chapter is: Providing a GUI: textfields and buttons.
GetDateProg.javaStage A: displaying the current date and time
GetDateProg.javaStage B: creating a window
GetDateProg.javaStage C: adding GUI components to the window
GetDateProg.javaStage D: responding to a click of a button
JButtonListener.javaStage D: a class whose actionPerformed method writes to standard output
GetDateProg.javaStage E: achieving the goal of altering the JTextField component
JButtonListener.javaStage E: a class whose actionPerformed method writes to the JTextField component
GetDateProg.javaStage F: using a WindowListener to handle a window-closing event
JButtonListener.javaStage F: a class which implements the ActionListener interface
ExitWindowListener.javaStage F: a class that implements the WindowListener interface
GetDateProg.javaStage G: using GetDateJFrame (twice) in the GetDateProg program
GetDateJFrame.javaStage G: the class that implements the user interface
JButtonListener.javaStage G: a class which implements the ActionListener interface
GetDateProg.javaStage H: using GetDateJFrame (twice) in the GetDateProg program
GetDateJFrame.javaStage H: getting a component to handle its own events
ExitWindowListener.javaStage H: a class that implements the WindowListener interface
PersonForm.javaA class that can be used to create a form for a person
PersonOutputProg.javaUsing a PersonForm to display the details about a person
13A.zipA zip file containing Date, DateImpl, Person, PersonImpl, ExitWindowListener and the above two files
PersonInputDialog.javaA class that uses a PersonForm in a dialog box for inputting values about a person
PersonInputDialogProg.javaUsing PersonInputDialog twice and comparing the two people


 1998-2002 Barry Cornelius
Any queries about this page should be sent to barry.cornelius@oucs.ox.ac.uk.
This page was last updated on 8 October 2001.