clean structure
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
import javax.swing.JDialog;
|
||||
|
||||
public class ApprovedButtonPressedEvent implements ActionListener{
|
||||
|
||||
private JDialog dialog;
|
||||
|
||||
public ApprovedButtonPressedEvent(JDialog dialog) {
|
||||
this.dialog = dialog;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent event) {
|
||||
this.dialog.dispose();
|
||||
this.dialog.getOwner().dispose();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user