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

awt does not provide access to the clipboard


    • Subcomponent:
    • Resolved In Build:
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5, windows_95
    • Verification:
      Not verified


      awt does not have any classes or methods for dealing with the windowing system's clipboard. All three windowing systems (X/Motif, Windows, and MacOS) have a concept of a clipboard, and the operation of this clipboard is almost identical in all three systems. Each has an Edit menu with Copy, Cut, and Paste commands; these commands have keyboard equivalents, and alternate methods of use; each implements these commands for text areas in an application-independent way; and each allows programmers to use the clipboard for application-specific data in addition to text.

      awt allows clipboard access to the extent that the underlying implementations of its objects support clipboard access. For example, the motif versions of TextArea and TextComponent allow the standard left-drag copy and middle-click paste. However, it is not possible to access the clipboard directly. This is a major problem with awt.

      Direct clipboard access is desirable at least in the following cases: when the programmer is trying to implement a text area Component that has more functionality than TextArea; when the programmer wishes to provide an Edit menu in one of his or her windows; and when the programmer wishes to use the more advanced capabilities of the clipboard to store graphics, documents, or other more advanced objects.




            • Assignee:
              amfowler Anne Fowler (Inactive)
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: