Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8004839

[macosx] Copy Paste does not work on Mac

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7u9
    • Fix Version/s: 8-pool
    • Component/s: client-libs
    • Labels:
    • Environment:

      Darwin Joshuas-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

      Description

      FULL PRODUCT VERSION :
      1.7.0__09-b05 Java HotSpot(TM) 64-Bit Server

      ADDITIONAL OS VERSION INFORMATION :
      Darwin Joshuas-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Java Plug-in 10.9.2.05

      A DESCRIPTION OF THE PROBLEM :
      Copy/Paste from/to AWT controls in applets does not work.

      This used to work in JRE 6 from Apple. It currently works in JRE 7 on Windows.

      REGRESSION. Last worked in version 6u31

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Visit: http://www.willamette.edu/~gorr/classes/cs231/lectures/chapter5/

      Try to paste text into the applet on that page
      Try to copy text from the applet on that page

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      AWT should allow copy/paste from the system clipboard
      ACTUAL -
      Nothing happens.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      It's on that page:

      import java.awt.*;
      import java.awt.event.*;
      import java.applet.*;

      public class MyApplet extends Applet implements ActionListener {
          TextField inputLine = new TextField(15);
          
          public MyApplet() {
              add(inputLine);
              inputLine.addActionListener(this);
          }
          
          public void actionPerformed(ActionEvent event) {
              String s = inputLine.getText();
              String sUp = s.toUpperCase();
              inputLine.setText(sUp);
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Have not found one.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pchelko Petr Pchelko (Inactive)
                Reporter:
                ndcosta Nelson Dcosta (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: