JDK-6676067 : Copy/paste don't work with the right button of the mouse in GTK system
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2008-03-17
  • Updated: 2011-02-16
  • Resolved: 2008-04-14
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Ubuntu Linux 7.10

EXTRA RELEVANT SYSTEM CONFIGURATION :
Default theme of Ubuntu (Human)

A DESCRIPTION OF THE PROBLEM :
When I select and copy a text in a text component (from a JTextField, for example) and then I select another application (a text pane of Firefox, for example) using the right button of the mouse, the option 'paste' in the mouse popup becomes disabled.

But the text copied is pasted if I use Control+V (i.e., the text exists in the transfer area).

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. I copy a text from a JTextField, JTextArea or a JTextPane;
2. I select a text area of another application (non Java: here I have used Firefox and a text editor, like gedit);
3. I click with the right button of the mouse and the popup appears;
4. The 'paste' option becomes desabled.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
1. I copy a text from a JTextField, JTextArea or a JTextPane;
2. I select a text area of another application (non Java: here I have used Firefox and a text editor, like gedit);
3. I click with the right button of the mouse and the popup appears;
4. I want paste the text from the transfer area. The 'paste'option in the popup must be enabled.
ACTUAL -
I want paste the text from the transfer area copied from a Swing application, but the 'paste' option in the popup becomes disabled (the copy exists in the transfer area: I can paste it using Control+V).

ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
No source. Any Swing application with a text component like JTextField, JTextPane or a JTextArea can reproduce this problem.
---------- END SOURCE ----------

Comments
EVALUATION duplicate of 6607163
14-04-2008

EVALUATION This works well on Windows (even with the bugster application) reassinged to AWT...
11-04-2008