This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm running the 2/9 build but noticed this problem even in the R4.0 release: Quite often while editng a Java file with protected code blocks (the ones generated by NB's form designer) I lose the ability to "Paste" after doing a "Copy". I would just be doing stuff within the src file (editing, adding, removing code, etc. - but NEVER in the "protected code blocks") - when the Paste would stop working. If I close the source file and then re-open it, the Paste is active again and the text I previously 'Copy'd would be properly pasted.
Do you mean pasting via editor context menu (invoked after right mouse button) or the paste from MainWindow/Edit/Paste or using shortcut CTRL+V? Which one doesn't work? What JDK version are you using? Thanks.
Comment from user: "I am using JDK 1.5.0, JRE 1.5.0 and Netbeans 4.1. I had the same problem with Netbeans 4.0. I never had this problem with Netbeans 3.6. using the same JKD and JRE. When I copy with the context menu, move the cursor where I want to copy to and then bring up the context menu again, the paste option of the menu is grayed out. When I first run the Netbeans IDE I am able to do a few cuts and pastes but after approximately ten cuts and pastes it stops working. I have to run a separate microsoft editor application to do cut and paste while I run the Netbeans IDE."
Aha, I can reproduce it using following scenario: 1. select some code in protected area 2. right mouse click to popup context menu 3. copy 4. right click to non protected area - paste is disabled on the contrary, if there is no selection, paste action is sensitive to protected/unprotected area Is this the scenario you have reproduced or do you have another one?
I cannot reproduce the original problem and neither the one that Martin R. reported. Closing as worksforme. Please reopen the issue if the problem persists with present builds.