mahovictim / rapla

Automatically exported from code.google.com/p/rapla
0 stars 0 forks source link

Copy password from clipboard to Login Dialog #375

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
some of our users have problems because they are not able to copy their 
passwords from password generator to the JPasswordField used at the login 
procedure.
Maybe there is someone with some Java/GUI expertise who is able to enable it in 
a faster way than we could? Copying content from Name to Password field is 
possible..

best
benedikt

Original issue reported on code.google.com by b.von.st...@gmail.com on 11 Dec 2013 at 12:24

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f8298fbe2fb1.

Original comment by christop...@gmail.com on 11 Dec 2013 at 3:46

GoogleCodeExporter commented 9 years ago
From f8298fbe2fb13e85367776cd713cd801f17cd87e Wed, 11 Dec 2013 21:18:10 +0530
From: Christopher Kohlhaas <christopher.kohlhaas@gmail.com>
Date: Wed, 11 Dec 2013 21:11:37 +0530
Subject: [PATCH] fixes  Issue 375:  Copy password from clipboard to Login Dialog

diff --git a/src/org/rapla/client/internal/LoginDialog.java 
b/src/org/rapla/client/internal/LoginDialog.java
index bce0617..ac304b0 100644
--- a/src/org/rapla/client/internal/LoginDialog.java
+++ b/src/org/rapla/client/internal/LoginDialog.java
@@ -45,6 +45,7 @@
 import org.rapla.framework.RaplaContext;
 import org.rapla.framework.RaplaException;
 import org.rapla.framework.StartupEnvironment;
+import org.rapla.gui.RaplaGUIComponent;
 import org.rapla.gui.toolkit.RaplaFrame;

 public final class LoginDialog extends RaplaFrame implements LocaleChangeListener
@@ -69,10 +70,13 @@
    JPanel                      canvas;
    protected LocaleSelector    localeSelector;
     StartupEnvironment env;
+    // we have to add an extra gui component here because LoginDialog extends 
RaplaFrame and therefore can't extent RaplaGUIComponent
+    RaplaGUIComponent guiComponent;

     public LoginDialog(RaplaContext context) throws RaplaException
    {
        super(context);
+       this.guiComponent = new RaplaGUIComponent(context);
        env =  context.lookup( StartupEnvironment.class );
        i18n = context.lookup(RaplaComponent.RAPLA_RESOURCES);
        localeSelector = context.lookup(LocaleSelector.class);
@@ -170,7 +174,8 @@
        Listener listener = new Listener();
        password.addActionListener(listener);
        languageSelector.addFocusListener(listener);
-       
+       guiComponent.addCopyPaste( username);
+       guiComponent.addCopyPaste( password );
        // ################## END LABELS AND TEXTFIELDS ###################

        // ################## BEGIN BUTTONS ###################

Original comment by christop...@gmail.com on 11 Dec 2013 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by christop...@gmail.com on 11 Dec 2013 at 3:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision e2ebe51b3f5d.

Original comment by christop...@gmail.com on 11 Dec 2013 at 10:39

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f8298fbe2fb1.

Original comment by christop...@gmail.com on 18 Dec 2013 at 10:14

GoogleCodeExporter commented 9 years ago

Original comment by christop...@gmail.com on 9 Jan 2014 at 4:38

GoogleCodeExporter commented 9 years ago

Original comment by christop...@gmail.com on 9 Feb 2014 at 9:07