wumpz commented on issue #3962:
URL: https://github.com/apache/netbeans/issues/3962#issuecomment-1637484310

   Switching off Netbeans special clipboard handling seems to improve situation 
as well:
   
   ```java
   
TopSecurityManager.makeSwingUseSpecialClipboard(Lookup.getDefault().lookup(ExClipboard.class));
   ```
   used here: 
https://github.com/apache/netbeans/blob/d848cb34e343307bf20d8c8a0948e6f004dfa86d/platform/o.n.core/src/org/netbeans/core/NbLifecycleManager.java#L71
   
   defined here:
   
https://github.com/apache/netbeans/blob/d848cb34e343307bf20d8c8a0948e6f004dfa86d/platform/o.n.bootstrap/src/org/netbeans/TopSecurityManager.java#L664
   
   To avoid this special handling you could try to switch off 
TopSecurityManager but I have no idea what side effects this has. So start your 
platform app or netbeans with `-J-DTopSecurityManager.disable=true`.  This 
avoids installing Netbeans complete clipboard handling. Look into 
`NbLifecycleManger`:
   
   ```java
   public static void advancePolicy() {
           if (policyAdvanced) {
               return;
           }
           // 
-----------------------------------------------------------------------------------------------------
           // 8. Advance Policy
           if (!Boolean.getBoolean("TopSecurityManager.disable")) {
               // set security manager
               TopSecurityManager.install();
               if (CLIOptions.isGui()) {
                   
TopSecurityManager.makeSwingUseSpecialClipboard(Lookup.getDefault().lookup(ExClipboard.class));
               }
           }
           policyAdvanced = true;
       }
   ```
   
   Strangely clipboard history still works. I had no troubles copy paste from 
and to external applications so far.
   
   
   So this referenced bug: 
http://developer.java.sun.com/developer/bugParade/bugs/4818143.html still 
relevant?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to