tutorials

Spring 2007
course
navigation
Final

Notes

Sourceforge project site here; username=jim
CVS Log with commit comments Here.
Finally got a working jar, zip is Here(On Campus) (it shows only the last months activity by default, you have to change the date filter in order to get everything)

Files

Questions

I've been trying to find some sort of auto-resize function for java.swing.component classes, and I've been kind of out of luck so far. Is there a way to specify object behavior on resize?

Answered

How can you require subclasses to implement specific methods? I want all of the database objects that extend DBObject to have certain specific methods, and I'd like to have those structural components to be required just to allow for easier development.
Answer: See for example http://www.codeguru.com/java/tij/tij0079.shtml on "abstract methods". Declaring a method "abstract" in the parent class forces the child to implement it. Or you can have the parent class's method thrown an error (though that won't be seen until runtime, not compiletime). You also need to call the whole class "abstract" if it has any abstract methods, since it can't be instantiated - only its children can.

Archive

1/04/07

2/26/07

2/8/07

Stuff

Resources

http://cs.marlboro.edu/ courses/ spring2007/tutorials/ sam/ home
last modified Monday May 7 2007 9:20 am EDT

attachments [paper clip]

     name last modified size
   consider.zip Feb 26 2007 9:37 am 12.8kB    consider030407-2.zip Mar 8 2007 8:05 pm 15.4kB    consider030407.zip Mar 4 2007 9:48 pm 16.9kB [IMG]DB1.jpg Mar 8 2007 11:41 pm 37.9kB [IMG]DB2.jpg Mar 8 2007 11:41 pm 35.6kB    DBDesign.PDF Feb 26 2007 10:28 am 73.8kB    eclipse.zip Mar 4 2007 8:42 pm 142MB    forms-1_0_7.zip Apr 9 2007 10:26 am 1.14MB    graph-2-8-07.zip Feb 8 2007 8:27 pm 13.5kB [TXT]proposal.txt Feb 4 2007 6:56 pm 2.05kB [IMG]ScreenShot.jpg Apr 9 2007 10:24 am 45.6kB