Well, I know for sure java.awt.Window doesn't have a method show(String, int, int). If the class ImageWindow has it, then make sure the compiler knows what class your object belongs to.
If you do:
ImageWindow iw = new ImageWindow();
Window w = (Window)iw;
w.show(fname, x, y);
it is most probable it won't work because you're telling the compiler to call (invoke) the method show(String, int, int) in class Window (since you cast iw to Window) and this class doesn't have such a method.
You can do like this:
((ImageWindow)w).show(fname, x, y);
Now you're casting the object back to ImageWindow so the proper method is invoked.
Maybe it'd be easy to let us know what you're trying to do, it seems awfully hard.
