- Code Examples from your Textbook:
- To get the code from your textbook into an Eclipse project for
easy examination, please carry out the following steps:
Presto! You should have all the source code from your textbook in
a giant Eclipse project organized by chapters.
- Use your favorite web browser to download the appropriate zip
file from the author’s website. I prefer the zip file that is
organized by chapters:
- Use your favorite unzip tool to unzip the file. This will
create a directory called "book7ebychapters" (or similar).
- In Eclipse, select "New Java Project."
- Give your new project a name (such as
- Choose "Create project from existing source" and browse for
the directory created when you unzipped the file (e.g.,
- Click "Finish."
- Code Examples from Previous Semesters:
- To get the code from previous semesters that I have used in
class, please go to the Desire to Learn website for the class,
click on "Links," and follow the instructions there.
- Generics Demo:
- For comparing objects, the Making Java Objects Comparable tutorial found at the OnJava.com website is one example. I have updated the code found there to use generics and put the results in an Eclipse project zip file.
- GUI demos:
- The MVC Circle example from the textbook, along with my version that uses a timer for the controller, are available as an Eclipse project zip file.
- The MVC diagram used in class comes from a Java BluePrints document entitled "Model-View-Controller" from Sun. The same diagram, as well as material related to an alternate MVC approach, are included in the article "Java SE Application Design With MVC" from Sun.
- Type-Safe Version of Lab 4:
- Several applet examples from your textbook are available in a subdirectory.
- Don’t forget that there are lots and lots of examples in the 2DL page for the class!