I've been experiencing the same issue for a long time now and the solution is exactly how you described. Perform cut and undo in Netbeans.
I am not sure what triggers this bug but it definitely exists. Thanks! On Tue, Aug 29, 2023, 1:50 AM Kenneth Fogel <kfo...@dawsoncollege.qc.ca.invalid> wrote: > Hi, > > I have mentioned this before, but the situation is getting worse. More > often than not, I must cut the text, paste the text into the external app > such as Word, and then restore (Ctrl-Z) the cut text back into NetBeans. > This week it started to require this just when I want to copy and paste > text between tabs in NetBeans. My uninformed guess is an issue in how > NetBeans responds to the Copy command, somehow losing its connection to the > Windows clipboard that does not happen if Cut is used. > > But wait, there is more. It has become hit or miss to copy from another > application into NetBeans. > > I can get a temporary reprieve by closing and then restarting NetBeans. > > I do have a question. How many people actively working on NetBeans do this > in a Windows rather than Linux or MacOS operating system? I can say that > this problem is unique to NetBeans in my Windows 11 environment and has not > occurred in any other application or IDE that I have used. I don't think I > can file a JIRA ticket because I cannot provide a repeatable example. > > Here is my environment from the About box: > > Product Version: Apache NetBeans IDE 18 > > Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7 > > Runtime: OpenJDK Runtime Environment 17.0.7+7 > > System: Windows 11 version 10.0 running on amd64; Cp1252; en_CA (nb) > > User directory: C:\Users\omni_\AppData\Roaming\NetBeans\18 > > Cache directory: C:\Users\omni_\AppData\Local\NetBeans\Cache\18 > > > Ken Fogel > > >