How to manage/access variables between classes
I have 3 applet parameters that I need send to a class which creates and sends an Http Request. My code is setup as follows:
1. Applet Class ( one containing init() ) creates a new instance of a GUI class which creates and appends a GUI to the applet class.
2. The GUI class monitors button clicks, upon clicking a certain button the GUI class create a new instance of the Http Request class which then sends the request.
How do I get the parameter data from the Applet class to the Http Request class?
The only way I can think of doing it, is by sending the params as arguments from the Applet class -> GUI class -> Http Request class. The problem with that idea is there is so much coupling. There's got to be a better way. Any ideas/suggestions?