From 2db601475f5ce767ac79932b9f1e33667c7c7d95 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 16 Feb 2015 19:04:43 -0500 Subject: [PATCH] UI improvements for Windows and system look and feel. --- .../lyndir/masterpassword/gui/AppleGUI.java | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/AppleGUI.java diff --git a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/AppleGUI.java b/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/AppleGUI.java deleted file mode 100644 index 34ae8a88..00000000 --- a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/AppleGUI.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.lyndir.masterpassword.gui; - -import com.apple.eawt.*; -import javax.swing.*; - - -/** - * @author lhunath, 2014-06-10 - */ -public class AppleGUI extends GUI { - - public AppleGUI() { - - Application application = Application.getApplication(); - application.addAppEventListener( new AppForegroundListener() { - - @Override - public void appMovedToBackground(AppEvent.AppForegroundEvent arg0) { - } - - @Override - public void appRaisedToForeground(AppEvent.AppForegroundEvent arg0) { - open(); - } - } ); - application.addAppEventListener( new AppReOpenedListener() { - @Override - public void appReOpened(AppEvent.AppReOpenedEvent arg0) { - open(); - } - } ); - } - - @Override - protected PasswordFrame newPasswordFrame(final User user) { - PasswordFrame frame = super.newPasswordFrame( user ); - frame.setDefaultCloseOperation( WindowConstants.HIDE_ON_CLOSE ); - - return frame; - } -}