0

Any way to control the closing of the browser?

asked 2020-05-14 14:53:35 +0800

softteam gravatar image softteam
120 7

I would like to be able to programmatically control when a user closes a browser window in order to be able to unlock records. Do you know any way to carry it out?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-14 18:00:58 +0800

LuigiFabbri gravatar image LuigiFabbri
46 5

updated 2020-05-15 11:39:18 +0800

hawk gravatar image hawk
2620 1 5
http://hawkphoenix.blogsp... ZK Team

Hi

you can do this

component.getDesktop().addListener(new DesktopCleanup() {            
    @Override
    public void cleanup(Desktop desktop) throws Exception {
    }
});

where component is your Component, for example, it can be a Window.

link publish delete flag offensive edit

Comments

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2020-05-14 14:53:35 +0800

Seen: 8 times

Last updated: May 15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More