CIS 218 Course Materials
Source File Description
EmptyFrame.java Starting point example of how to display a top-level window.
In our case, as in the majority of Swing applications, this is a javax.swing.JFrame
  
SimpleFrame.java Builds on EmptyFrame, but demonstrates how to add a GUI component (in this case another container) to our JFrame
  
SimpleDerivedFrame.java Builds on SimpleFrame, this example demonstrates how to extend the JFrame class to store local variables/references.
  
MainMakesFrame.java We extend our SimpleDerivedFrame example to show the typical manner in which a Swing GUI is constructed:
A class defines main(), and it creates/shows a second class that is a JFrame
  
FinalPoll.java We begin to add common GUI widgets (buttons and labels in this case) to our frame
  
TicTacToeFrame.java We use a new layout manager, GridLayout, to simulate a Tic-Tac-Toe layout ( no interaction yet ) This class is re-used in the Chapter13 example, TicTacToe.java, which extends this class
  
ComponentFlashCards.java An illustration of most of the main GUI widgets not covered yet, as well as a new layout manager, CardLayout
  
Class Versions Versions of SimpleDerivedFrame, EmptyFrame, and LeftPanel, as we modified them during in-class discussion
  
Back to Current Session | Web Publishing | Faculty Directory | Maps and Directions | Search
Copyright © 1997 College of DuPage
Computer Information Systems
(630) 942-2800 x51902
goodacrc@cdnet.cod.edu
Updated 19 Jun 2003
Disclaimer