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

Make Tooltip Text selectable

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      A DESCRIPTION OF THE REQUEST :
      Many times the tooltips display useful information that can actually be copied and pasted elsewhere. Currently there is no way to select the text in the tooltip. Support a mode for tooltip in which the text can be selected as if in a text area. The tooltip may enter this mode using a keyboard showrtcut or a click on "pin" tooltip button.

      JUSTIFICATION :
      Many times the tooltips display useful information that can actually be copied and pasted elsewhere. For example fully qualified class name in a Java IDE can be copied and pasted into an import statement. The absolute of a file in the Java file editor tab's tooltip can be copied and pasted in a desktop shell window.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
        Tootip is shown.
      User wants to copy the text displayed in the Tooltip.
      User click on the "pin" button in the tooltip window or does some mouse gesture or types a keyboard shortcut. The tooltip enters a mode where the text is displayed in a non editable JTextComponent (including JScrollPane if required).
      User copies the text.
      User presses Escape to dismiss the tooltip.
      ACTUAL -
      No way to copy the tooltip text.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: