In TextField can only select text visible or to the left
Sun/Oracle initial submission number 9002590 (May 2013, but so far no actual bug number):
The TextField in the applet below has English names of the numbers 1 through 10.
Expected behavior: selecting text using a mouse beginning at the left ("One ...") should select not only the visible text (One through Eight) but also allow continuing to the right to select the text that is initially not visible initially (including Nine and Ten).
Observed behavior: Using JRE 1.7.0_21 on Windows, if one tries to select the text by dragging the mouse from the left to the right of the TextField, all the visible text gets highlighted (One through Eight), but the part of the text that is un-displayed on the right does not get selected or copied (Nine and Ten).
On Windows, JRE 6 and possibly early versions of JRE 7, the expected behavior occurred. One MacOS, JRE 1.7.0_21 and JRE 8 build 89 the expected behavior occurs.
Workaround: Moving to the right of the TextField using the keyboard arrow allows one to select at the end of Ten and then select backwards to include One. But this should work in both directions, as it did previously on Windows and continues to do on MacOS.
Applet source code is at this link.
If you have any insights, workarounds or comments about this test page please contact Mickey Segal. A listing of many Java resources is at this link.