Re: Save/Discard/Cancel dialog when TopComponent is closed
Paolo Repele <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAGtHowYSj4=0kZ3t2w=ABO6M8M3hukWQgpinFd8SX2WMPNfOLg@mail.gmail.com> |
You need to override the method canClose or close of the TopComponent. On 25 April 2016 at 11:15, Paco Barrera <[email protected]> wrote: > 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_-6237004797605006001_m_7144030427174528219_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > -- Non hai veramente capito qualcosa fino a quando non sei in grado di spiegarlo a tua nonna. (A.Einstein)