• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ali Khan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic