Save/Discard/Cancel dialog when TopComponent is closed

Paco Barrera <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAFS-qLnkCxVr3sfEYBv135Fs-FABwCyQcoDm3TR27p39EGNtOA@mail.gmail.com>
I've implemented my custom Savable class for manage modifications of my
objects and it works right when I close the application.

I need the same behavior when I close the TopComponent, but I don't know
how to achieve this.

Can anybody help me?
Thanks in advance.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_7144030427174528219_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.