Get an object from a class
Im trying to figure out how to get an object for another class, i cant figure it out...is thier a way to do this. Here is an example of what im tying to do
Lets say i have the main class, in that class i create a zoomPanel() object
zoomPanel zP =new zoomPanel();
zP.moveLeft();
in the zoom panel class i have things like
publicvoid moveLeft()
{
}
publicvoid moveRight()
{
}
but in the class i want to get the object i have
class keyPressextends zoomPanelimplements KeyListener
{
publicvoid left()
{
moveLeft();
}
}
when i press the left arrow i need it to move zP left

