wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes how to access the instance of a class in another class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to access the instance of a class in another class?" Watch "how to access the instance of a class in another class?" New topic
Author

how to access the instance of a class in another class?

Ali Khan
Greenhorn

Joined: Nov 29, 2007
Posts: 8
hi guys,

I am making recycling machine in java using XML RPC solution.

I have four classes

RecyclingGUI
CustomerPanel
Server
Client


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)???

Thanks In Advance Thanks

Please help me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to access the instance of a class in another class?
 
Similar Threads
how to access this remote EJB server
Sharing an instance in one JVM
Printing issue
Socket Permissions
JDBC type 3 driver