I've been reading up on the MVP pattern, and have been unable to find a Java Swing code example. Does anyone know an opensource project that uses this pattern or where I could find such an example? (I'm not looking to use a framework to help implement the pattern, just an example.)
Actually, from a certain point of view, all of Swing can be seen as a MVP model( It really is turtles all the way down).
Models: ListModel, TableModel, etc. Presenter: All Swing widgets, such as JLabel, JTable, JPanel etc. View: ListUI, PanelUI, LayoutManagers, etc.
I've written several systems using MVP with Swing, JSP, and GWT, and have been extremely happy with the results each time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With