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

Some problems accessing PRIMARY Clipboard for Swing JTextComponents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • sparc
    • solaris_7
    • Verified

      With new Clipboard features for Merlin, AWT and Swing TextComponents should implement use of the Primary Clipboard with the middle mouse button (for data transfer). This feature is supported for Solaris and Linux (X11 applications).

      With Swing JTextComponents, data transfer does not always work in the following cases:

      1) Cannot use middle mouse button to transfer text between other JTextComponents (Same JVM and other JVM).

      2) Cannot use middle mouse button to transfer text from native (i.e. the Terminal Window) to JTextComponents.

      Middle mouse button is working when transfering from JTextComponent to native (Terminal Window).

      - Tested this with Solaris 2.7 and 1.4beta-B53.
      - ClipboardStringTestSwing.java application attached has some JTextComponents to test the feature (JTextField and JTextArea).

      Steps to reproduce:
      ------------------
      1) Compile and run attached ClipboardStringTestSwing.java application.

      2) Try and use the middle mouse button for text data transfer between other JTextComponents (should work, but does not).

      3) Try and use the middle mouse button for text data transfer from the native (Terminal Window) and JtextComponents (should work, but does not).

            tprinzing Tim Prinzing (Inactive)
            rreynagasunw Rick Reynaga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: