Java listener on dialog close

前端 未结 2 1028
萌比男神i
萌比男神i 2020-12-31 01:01

I have a Java app that displays a list from a database. Inside the class is the following code to open a new dialog for data entry:

@Action
public void addNe         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 01:33

    you have to add WindowListener and override windowClosing Event, if event occured then just returs some flag, example here

提交回复
热议问题