Re: looking for complex code example for best swing / MVC practices



antoine wrote:

[...]
I've been searching for a complete & complex example application with
good design, from which I could learn & realize my mistakes, but
couldn't find any through google so far... [...]

Martin Fowler describes desktop patterns that I found useful
for working with Swing, especially "Presentation Model" and
the Model-View-Presenter (MVP) variants, and a bunch of other
less important patterns such as Presentation Chooser or
Event Aggregator.

Martin motivates these patterns and why one would separate
the presentation logic from the presentation in a longer text.
Just google for "Organizing Presentation Logic".

I provide presentations that describe the architecture
of the JGoodies tools and demos. These slides complement
Fowlers texts and pattern descriptions; my focus is on
the concrete Swing implementation.

My favorite pattern for Swing is "Presentation Model",
because Swing already includes a good portion of the
synchronization necessary for using this pattern.
The free JGoodies Binding tutorial contains source
code examples for using "Presentation Model" with Swing.
And so you can get the following for free: Fowlers motivation,
and his pattern catalog, my slides with additional diagrams,
smaller Swing source code examples. My presentations are here:
http://www.jgoodies.com/articles/

-Karsten
.



Relevant Pages

  • Re: Good design and practice of gui code
    ... I've read a lot on MVC, but I rarely see code that reflects what I ... I favor to follow the "Presentation Model" pattern, ... several Swing core components already use this pattern. ...
    (comp.lang.java.gui)
  • Re: looking for complex code example for best swing / MVC practices
    ... that have a lot of complexity at the model layer, ... monitors 2000 stocks and stock prices can change very often, ... maybe 40 updates a second a realized, then up to 30 swing components ... My favorite pattern for Swing is "Presentation Model", ...
    (comp.lang.java.gui)
  • Re: Metric accents of 4-time
    ... see how much we were attuned to discussing swing. ... can and can't play in a swing feel. ... I still think that the best definition of the swing pattern of the ... it is the bible of playing your limbs independently for ...
    (rec.music.theory)
  • Re: BoogieByTheBay and Competition Violations
    ... phrase the music, to extend a pattern, and/or to accent breaks." ... as negative content in a 90% swing content penalty decision. ... types of extensions might be required. ... pattern extension is still WCS "swing content". ...
    (rec.arts.dance)
  • Re: rhythm
    ... But in a tune where the main pulse is swing 1/8s, and a passage of 1/16s is thrown in I know what to play. ... experienced Swing musicians left around today, ... think it as the l ll l ll pattern to keep the playing simple. ...
    (rec.music.theory)