I know how to deal with it... I just feel that it should already be dealt with. The blasted thing takes a BoundedRangeModel as an argument for the constructor or with the setModel() method, but it turns out there's no requirements for BoundedRangeModels to do anything because it just an interface; even DefaultBoundedRangeModel (the default extension to it) has no MVC code. Kind of defeats the purpose of MVC, don't you think?
I've got my ProgressTracker as the Controller now, with a BoundedRangeModel as its Model and the ProgressTrackerBar (extends JProgressBar) as an Observer for the View. Not all that difficult, but since Swing is supposed to be MVC-based already...
Okay, I'm done ranting. For now, anyway :-) |