Hi all,
Anyone any ideas on how to retrieve the root Frame of the application?
I want to set a default button for a view but cant get hold of the root frame to set that button, eg a login screen with a default "login" button
I could always add listeners but would like to keep it simple...
Rootpane always a null, so rfame seems to be?, and on focusgained seems like the only place where i could set a default button for a screen.
Anyone managed to achieve this? any tips?
cheersCode:public void componentFocusGained() { clearUserNameAndPasswordFields(); getActiveWindow().getControl().getRootPane().setDefaultButton(_loginButton); }
Alan


Reply With Quote