CS 102 Exam 1 Review Topics
Chapter 1 - Background
- Introduction & Objectives - READ THEM
- The Evolution of Programming
- Don't worry about it - for your background
- The Internet and the Worldwide Web
- HTML as it applies directly to Java
- Along Comes Java
- Java (console) application
- Java applet
- Applet from source code to display
- HTML file for Java applet (especially applet tag)
- (see also Java windows application)
- see console, applet, and windows examples
- An Overview of Java
- Look over syntax, language features, objects and classes, inheritance, and libraries sections
- Hands On - Colors.java - LOOK IT OVER
- Summary - READ IT
- Lab Exercises & Postlab Exercise - SCAN THEM - you should have already done them
Chapter 2 - Applets
- Introduction & Objectives - READ THEM
- The Applet Class
- The use of extends Applet
- The import statement - purpose and alternatives
- Types of comments in Java
- Java identifiers (class, method, and variable names)
- Methods, Inheritance, and Overriding
- The paint method (including argument and return value)
- Syntax of a Java method definition
- Syntax of a Java method call
- Java argument passing
- Java's class hierarchy for a specific applet
- Where to find a method definition
- Graphical Programming
- Where the Graphics, Font, and Color classes fit into the hierarchy
- Import statement needed for using above classes
- General usage of Graphics methods (as used in examples and lablets)
- General usage of Font methods (as used in examples and lablets)
- How to avoid using "magic numbers"
- Syntax of a Java variable declaration statement (with or without initialization)
- The Point, Dimension, and Rectangle classes (as used in examples and lablets)
- The this object (remember if no object is specified in a method call)
- Hands On - Wormhole.java - LOOK IT OVER
- Summary - READ IT
- Class References - SCAN AT MOST - you should have already read them
- Lab Exercises & Postlab Exercise - SCAN THEM - you should have already done them
Chapter 3 - Widgets
- Introduction & Objectives - READ THEM
- Components
- How widgets (of this chapter) fit into the Java class hierarchy
- The concept of an abstract class (e.g., TextComponent)
- Methods common to all components
- Textual Widgets
- The Label class (constructing one, getting and setting its text)
- Purpose of the TextComponent class (common get/set methods)
- The TextField class (constructing one, getting and setting its text)
- The TextArea class (constructing one, getting and setting its text)
- When and when not to use the new operator
- Active Widgets
- The Button class (constructing one, getting and setting its label)
- The Checkbox class (constructing one, getting and setting its label and state)
- The CheckboxGroup class (constructing one, getting and setting selected Checkbox)
- The purpose of a CheckboxGroup and interaction with Checkboxes
- The Choice class (constructing one, adding and removing items, getting and setting selected item)
- The List class (constructing one, adding and removing items, getting and setting selected items)
- The single-selection and multiple-selection modes of the List class
- Hands On - Gigobite.java - LOOK IT OVER
- Summary - READ IT
- Class References - SCAN AT MOST - you should have already read them
- Lab Exercises & Postlab Exercise - SCAN THEM - you should have already done them
Chapter 4 - Visual Design
- Introduction & Objectives - READ THEM
- Containers
- How containers fit into the Java class hierarchy
- The Container class methods to add and remove components
- The Panel class (constructing one)
- Using Panels to organize components (including multiple levels of panels)
- Layouts
- The Container class methods to set and get layout
- The FlowLayout class (constructing one and its class constants)
- The BorderLayout class (constructing one, its class constants, and the three layout "rules")
- Resizing or not resizing components in FlowLayouts and BorderLayouts
- The GridLayout class (constructing one)
- The use of the null layout (including its advantages and disadvantages)
- Other Containers, Other Details
- The Canvas class (constructing one and when/how it should be used)
- Instance variables (including their normal access)
- The Window class (including showing and disposing windows)
- The Frame class (constructing one with a title and using one)
- The Dialog class (important but not discussed sufficiently)
- Menus
- How menus and their components fit into the Java class hierarchy
- The MenuComponents abstract class
- The MenuBar class (constructing one and adding menus)
- The Menu class (constructing one, adding items including separators)
- The MenuItem class (constructing one)
- The CheckboxMenuItem class (constructing one and getting/setting its state)
- The PopupMenu class (constructing one and showing it at a given location)
- Look at the MenuTest example
- Hands On - Ovenator.java - LOOK IT OVER
- Summary - READ IT
- Class References - SCAN AT MOST - you should have already read them
- Lab Exercises & Postlab Exercise - SCAN THEM - you should have already done them
Date page last modified and links checked: February 5, 2000
Contact for information or technical questions:
isaacson@fisher.unco.edu