how to access the instance of a class in another class?
posted 7 years ago
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)???