The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

*mutters something about Swing, JProgressBar & MVC by jmaxsohmer2007-06-12 05:21:31
  You could extend the JProgressBar with ... by aix tom2007-06-12 05:28:26
    Already done. by jmaxsohmer 2007-06-12 05:38:28
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 :-)
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)