Revision: 4112
          http://vexi.svn.sourceforge.net/vexi/?rev=4112&view=rev
Author:   clrg
Date:     2011-04-27 07:37:40 +0000 (Wed, 27 Apr 2011)

Log Message:
-----------
Fix copy/paste with Swing

Modified Paths:
--------------
    trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java

Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java
===================================================================
--- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java     
2011-04-19 13:04:32 UTC (rev 4111)
+++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java     
2011-04-27 07:37:40 UTC (rev 4112)
@@ -69,7 +69,14 @@
         checkImageIsReady(buf.i);
         return buf;
     }
-    protected Surface _createSurface(Box b, boolean framed) { return new 
SwingSurface(b, framed); }
+    protected Surface _createSurface(final Box b, final boolean framed) {
+        // REMARK copy/paste requires additional security privileges
+        return (Surface)java.security.AccessController.doPrivileged(new 
java.security.PrivilegedAction() {
+            public Object run() {
+                return new SwingSurface(b, framed);
+            }
+        });
+    }
 
 
     // Inner Classes 
/////////////////////////////////////////////////////////////////////////////////////


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to