Logi. 0 Newbie Poster

Hi there,

I'm working on a UI for a program ive been writing for the past few weeks and have encountered a problem getting my windows to pass input control..

My main program runs in a window which extends Canvas and implements Keylistener and is opened by:

MainWindow myWindow = new MainWindow()

My title window has a JMenu bar with an option to open the MainWindow and ive set it up so it opens it OK but it wont pass input control to the MainWindow

Having poked around a bit im thinking i have to use transferFocus() or something like that but it doesnt seem to be as straightforward as that..

What would be the best correct way to open a child window like this?

Im kind of trying to avoid posting the code as its from a slightly big program but if i have to i will :)

Cheers,

Logi.