Java - Structuring the flow of data in GUI from input to output <p>I'm putting together a GUI with a couple of panels. In one panel there are components for the user to input various parameters. In another panel, there are buttons and a place to output a plot based on data generated using the user inputs.</p> <p>I have all of the various pieces working independently now I'd just like them to talk to each other!! </p> <p>When i hit one button, I would like to take all of user inputs and combine them to generate a data set and plot it. Another button then to write this same data to a file.</p> <p>I have code to implement all the components individually, code to write data to a file and code to generate a plot from data. All of which works fine.</p> <p>I thought that I could use the Action/ChangeEvents to take the parameters and assign them to an ArrayList. Then use this arraylist to generate the data.<br> I'm finding it difficult to plan an approach to tackling this. </p> <p>Currently I'm using get set methods in the event handlers to set parameter levels for a particular instance of the array list, I would like to pass this instance into another class to generate the data but don't know how to make it accessible.</p> <p>I hope I have provided enought information here. If anyone has any thoughts on this they would be much appreciated.</p>