Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think a structured way to tackle your issue is to apply the MVC pattern. Here is what I think a seminal article about Model-View-Controller (MVC) using Java.</p> <p><a href="http://www.oracle.com/technetwork/articles/javase/mvc-136693.html" rel="nofollow">Java SE Application Design With MVC</a> by Robert Eckstein,</p> <p>and here is <a href="http://www.leepoint.net/notes-java/GUI/structure/40mvc.html" rel="nofollow">another sample code</a>.</p> <p>As for taking the parameters from one panel and pass them on to the other panel, you can use the Command Pattern. What the pattern does is basically encapsulate all the information needed for a method to perform (an instance of a class, parameters, etc.) into one Command. This Command then can be passed around in the application, simplifying the way you execute the method.</p> <p>A good book about Design Patterns, by the way, that I really love is <a href="http://shop.oreilly.com/product/9780596007126.do" rel="nofollow">Head First Design Pattern</a>.</p> <p>EDIT: I'd just like to add some links discussing about MVC and some other GUI architectures that I find useful: </p> <ul> <li><a href="http://martinfowler.com/eaaDev/uiArchs.html" rel="nofollow">GUI Architectures by Martin Fowler</a></li> <li><a href="http://codebetter.com/jeremymiller/2007/07/26/the-build-your-own-cab-series-table-of-contents" rel="nofollow">Build your own Composite Application Block series: UI Architechtures, Patterns and WinForm Examples</a></li> <li><a href="http://joel.inpointform.net/software-development/mvvm-vs-mvp-vs-mvc-the-differences-explained" rel="nofollow">MVVM vs MVP vs MVC: The differences</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload