V
vertigo
Hello
In Myclass (derived from Frame) i have:
class Myclass.....{
class WindowHandler extends WindowAdapter
{
public void windowActivated(WindowEvent e)
{
setFocus();
}
public void windowClosing(WindowEvent e)
{
AnotherObject.Close(XXX); /*here is problem*/
}
}
}
when i close Myclass i have to call other method from other class
with one parameter (which is reference to Myclass), but the problem is
that when i use this operator in WindowHandler class it return
WindowHandler class. How can i return reference to Myclass durring
windowClosing() ?
Thanx
Michal
In Myclass (derived from Frame) i have:
class Myclass.....{
class WindowHandler extends WindowAdapter
{
public void windowActivated(WindowEvent e)
{
setFocus();
}
public void windowClosing(WindowEvent e)
{
AnotherObject.Close(XXX); /*here is problem*/
}
}
}
when i close Myclass i have to call other method from other class
with one parameter (which is reference to Myclass), but the problem is
that when i use this operator in WindowHandler class it return
WindowHandler class. How can i return reference to Myclass durring
windowClosing() ?
Thanx
Michal