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.

Bug 51527 - Paste is not enabled after a copy in another application
Summary: Paste is not enabled after a copy in another application
Status: CLOSED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 18:40 UTC by Tim Lebedkov
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2004-11-15 18:40:24 UTC
-Copy some text into the clipboard from a notepad.
-right click in the editor
=>paste is not enabled
Comment 1 Miloslav Metelka 2004-12-01 12:17:37 UTC
It works for me on the RH9 Linux (using gedit). Martin R. will test on
Windows. Tim, could you please mention the build number and JDK
version? Thanks.
Comment 2 Martin Roskanin 2004-12-01 12:21:50 UTC
It works for me on winXP on JDK 1.4.2 and 1.5
Setting TM preliminary to future
Comment 3 Roman Strobl 2004-12-07 14:38:06 UTC
Changing subcomponent to clibboard.
Comment 4 Tim Lebedkov 2005-01-03 19:59:24 UTC
reproducible in 4.0 final

java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

the clipboard should be probably empty before trying to reproduce
Comment 5 Martin Roskanin 2005-03-11 09:54:18 UTC
I cannot reproduce it. 
Can you reproduce it always using mentioned reproduction steps?
(If yes, I could prepare some debug patch)
Is it reproducible also using latest dev builds?
What type of editor are you using? HTML? Java?
Are there any guarded blocks in the document?
Thanks.
Comment 6 Tim Lebedkov 2005-03-11 19:55:08 UTC
Here are the steps to reproduce this bug:

-close all opened files
-restart NetBeans
-open a java file
-select some code
-rmb
-copy
-open a java/form file
-rmb over a component
-properties
-switch to the opened java file
-minimize netbeans (click on the button in the taskbar)
-maximize netbeans (click on the button in the taskbar)
-rmb in the java file
=> "Copy" is disabled

the issue is also reproducible in 4.1 
(I switched between the design view and source view in a form/java file)
Comment 7 Martin Roskanin 2005-03-14 09:14:15 UTC
Thanks. I reproduced it on current dev builds.
It can be reproduced more easily:
1. open first java file and select some code
2. open second java file and invoke context menu via rmb
3. click the tab of the first file (Note there is no focus in the first file)
4. rmb - copy is disabled

It is because the second file gained the focus instead of the first during
performing the step 3

I will investigate further



Comment 8 Martin Roskanin 2005-03-15 13:19:16 UTC
It is not NetBeans problem.
It is regression in JDK 1.4, already fixed in JDK 1.5. (I confirm I cannot
reproduce the problem using JDK 1.5)

For more details:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4912806
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4799336

closing as wontfix
Comment 9 Tim Lebedkov 2005-03-27 13:13:44 UTC
ok
Comment 10 Vitezslav Stejskal 2007-11-05 13:30:30 UTC
Moving to the 'other' subcomponent.