Computer Science 523
Advanced Programming
Summer 2014, The College of Saint Rose
Lecture 5: Arrays; Java Swing
Date: Tuesday, Lecture Date, 2014
Agenda
- Announcements
- Midterm exam in 2 weeks - many more details next week,
today's topics are covered, next week's are not
- The Java API documentation is your friend
- I can't speak for all Java programmers, but I refer to it all the time when writing Java code
- it is almost always the first hit when you search for the
word "Java" followed by the name of the API class - but be
aware of the version of Java it gives you
- In-Class 3 recap (think we forgot to do this last week)
- Lab 4: Collections recap
- Collections
- arrays
- two-dimensional arrays
- Java Swing
- applets
- event-driven programming
- Swing components
- basic exception handling
- Lab 5A: Arrays out
- Lab 5B: Lights out out
Terminology
- array
- row major
- column major
- graphical user interface (GUI)
- applet
- Swing components
- label component
- inherit
- content pane
- event-driven program
- button component
- listener
- event handler
- interface
- layout manager
- text field
- throw an exception
- catch an exception/exception handler
Examples