CISC370-011 -- demo code from class #13

This page provides links to some sample code from class #13 (Dec 2).

Y01.java computes the SHA-1 or MD5 message digest of one or more files specified on the command line.

Y02.java generates a public/private keypair.

Y04.java displays a simple JTree. It includes a listener that traps tree selection events.

Y05.java is the skeleton of a simple file browser. The user can select a file from the JTree in the left pane of a JSplitPane, whose contents can then be displayed in the right pane.

Y06.java displays a very simple JTable with hard-coded data.

Y07.java is another JTable demonstration, including custom cell editors for two columns.

Y08.java is a database query tool. It provides a text box for entering database queries, and a JTable which is filled with query results. The database connection is initialized from a property file.

cb.py is the old ColorButtons.java demo program, recoded in Jython.

tree.py and table.py are demonstrations of JTree and JTable in Jython.