Swing menu systems

Hi im trying to get a swing menu system working using the UIWindow classes which are working well except when switching between windows.

I have a main menu which links to other dialogs, when i switch to say a saveDialog, the focus dosn’t switch to it also??

im using the UIWindowManger to swicth between dialogs e.g.



windowMgr.setVisible( oldDialog, false);
windowMgr.setVisible( newDialog, true);


is this the way the windowManager was intended to be used??

and any sugestions on implementing a menu system using swing/Xith UI would be greatly appriciated.