JDK-6354784 : Incorrect selection in non-focusable text components
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2005-11-23
  • Updated: 2015-11-06
Related Reports
Relates :  
Description
I've a non-focusable text area on a Frame. Using mouse, I'm selecting some text from the text area. The selection is not shown in the text area, but the text is actually selected. On Solaris, I'm able to paste the selected text by pressing the mouse middle button in native application or the same text area. On Windows, right clicking on the text area shows the menu, using which I can copy the selected text.

The behavior is wrong. Either the selection bordor should be shown or the selection should not happen. In motif toolkit, the selection border is shown even if the text area is non focusable

This is reproducible from tiger onwards.

Comments
EVALUATION I found two major points: - XAWT TextArea allows to select test and then copy/paste it with no selection visible - Win32 TextArea allows to select and copy/paste with visible selection in it. I'd say that Motif implementation of TA should be considered as correct one : it allows selection but prevent copy/paste. So, the fix is probably for XAWT and Win32 toolkits.
25-11-2005