This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
how to access the instance of a class in another class?
posted 6 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)???