Skip to content

Commit 9ff1748

Browse files
committed
removed application from deletion screen
1 parent fbd47f9 commit 9ff1748

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/delete_flashcardset_use_case/DeletionScreen.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package delete_flashcardset_use_case;
22

3-
import entityRequestModels.UserDsRequestModel;
3+
44
import loginAndSignupUseCase.UserLoginResponseModel;
55

66
import javax.swing.*;
@@ -24,10 +24,10 @@ public class DeletionScreen extends JFrame implements ActionListener {
2424
*/
2525
DelFlashcardSetController controller;
2626

27-
/**
28-
* The application
29-
*/
30-
JFrame application; // need this variable to only close the application and not the whole program
27+
// /**
28+
// * The application
29+
// */
30+
// JFrame application; // need this variable to only close the application and not the whole program
3131

3232
/**
3333
* A window with a title and a JButton.
@@ -72,7 +72,7 @@ public void actionPerformed(ActionEvent evt) {
7272

7373
// Exit deletion screen if user cancels deletion
7474
if (Objects.equals(evt.getActionCommand(), "Cancel")) {
75-
application.dispose();
75+
this.dispose();
7676
}
7777

7878
else { // Delete was pressed

0 commit comments

Comments
 (0)