Skip to main content

How to hide FrameView?

1 reply [Last post]
digz6666
Offline
Joined: 2007-05-20
Points: 0

Hi there!
I'd like to hide frameview to show login frame.
Is it possible?

I've tried following codes but not working.

1.
app.hide(login.); // this is the login frame view

2.
FrameView loginView = new FrameView(app);
AdvancedLogin login = new AdvancedLogin();
loginView.setFrame(login.getFrame());
app.hide(loginView);

3.
app.getMainFrame().setVisible(false);

4.
app.getMainView().getFrame().setVisible(false);

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rambito
Offline
Joined: 2010-02-24
Points: 0

with this code in the constructor u can modify the action of the frameview... :D

.......
this.getApplication().addExitListener(new ExitListener() {

public boolean canExit(EventObject event) {
return true;
}

public void willExit(EventObject event) {
System.out.println("Exit on close");
}
});
.....

u only add a ExitListener to the frameview (really to the aplicattion of the frameview)... :)