[picocontainer-dev] Swing MVC example app
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to make the make an example swing app that show Pico best
practice. I've forked a Sun MVC example code ( http://java.sun.com/developer/technicalArticles/javase/mvc/
) and replaced the main() method for one that uses PicoContainer,
created two new components for JFrame and JDialog, plus made a couple
of things Startable.
Do ...
svn co http://svn.codehaus.org/picocontainer/java/sandbox/swing_mvc_example/
cd swing_mvc_example
mvn install
java -cp /path/to/repository/org/picocontainer/picocontainer/
2.1/picocontainer-2.1.jar:target/original-swing_mvc_example-2.2-
SNAPSHOT.jar com.sun.example.mvc.Main
You should be able to do ...
java -jar target/swing_mvc_example-2.2-SNAPSHOT.jar
... but there is a bug with the Maven2 'shade' plugin
The app needs a little work. There as some mutually referent
components that I'm sure needn't be so directly entangled.
- Paul
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email