This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am making recycling machine in java using XML RPC solution.
I have four classes
basiccally user will be using recycling machine as usual but it will create instance of CustomerPanel and once you activate server, it will use the instance of customerPanel that was made by RecyclingGUI Class. Thus this will allow server to have that instance online for admin to use it and check what items are deposited via customerpanel class.
Essentially i want to access the instance of a class in another class, in other words how can I access the instance x(myCustomerPanel) of class CustomerPanel, which is made in class c2(RecyclingGUI) in another class c3(server)???