From b3018ad10eaafcda3b003739021d384c882cb212 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Tue, 5 Jul 2016 07:55:53 +0200 Subject: [PATCH] Compatibility to JAVA 1.7 --- .../java/de/fabianonline/telegram_backup/GUIController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/fabianonline/telegram_backup/GUIController.java b/src/main/java/de/fabianonline/telegram_backup/GUIController.java index 98e4f93..f36afff 100644 --- a/src/main/java/de/fabianonline/telegram_backup/GUIController.java +++ b/src/main/java/de/fabianonline/telegram_backup/GUIController.java @@ -17,7 +17,7 @@ public class GUIController { } private void showAccountChooserDialog() { - JDialog accountChooser = new JDialog(); + final JDialog accountChooser = new JDialog(); accountChooser.setTitle("Choose account"); accountChooser.setSize(400, 200); JPanel vert = new JPanel(); @@ -30,7 +30,7 @@ public class GUIController { JPanel bottom = new JPanel(new GridLayout(1, 2)); JButton btnAddAccount = new JButton("Add account"); bottom.add(btnAddAccount); - JButton btnLogin = new JButton("Login"); + final JButton btnLogin = new JButton("Login"); btnLogin.setEnabled(false); bottom.add(btnLogin); vert.add(bottom, BorderLayout.SOUTH);