JDK-6544368 : On TextArea, the mouse drag action causes characters to disappear
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1,windows_xp
  • CPU: x86,sparc
  • Submitted: 2007-04-10
  • Updated: 2016-11-07
  • Resolved: 2016-11-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
Mouse drag action on TextArea component causes characters to disappear.

The problem was reproduced on Windows XP SP2 (x86 Japanese) and Windows Vista (x86 Traditional Chinese/Japanese), using Java 1.6.0-b105 and 1.5.0_11.

Test instruction is as follows:
1. Compile and run attached testcase (TextAreaTest.java)
2. Click TextArea and move caret to right side of "z"
3. Move mouse cursor to right side of "z" and click right mouse
   button and keep it and move it to right side.
   (It's drag action)
4. If mouse cursor is on vertical scrollbar, "a" is disappeared
   on TextArea. <== PROBLEM
5. Resize TextAreaTest window to activate horizontal scrollbar
6. Resize TextAreaTest window bigger than before
   (At this time, horizontal scrollbar should be deactivated)
7. Move mouse cursor to right side of "z" and click right mouse
   button and keep it and move it to right side.
8. If mouse cursor is on vertical scrollbar, several characters
   disappear on TextArea. <== PROBLEM
   (At this time, horizontal scrollbar is not activated)

============================================================
import java.awt.*;
import java.awt.event.*;

class TextAreaTest extends Frame {
  TextAreaTest() {
    add(new TextArea("abcdefghijklmnopqrstuvwxyz", 3, 30));
    pack();
    addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) { System.exit(0); }
    });
    setVisible(true);
  }
  public static void main(String[] args) {
    new TextAreaTest();
  }
}

Comments
EVALUATION This issue is not specific to Japanese WinXP/Vista, as I can easily reproduce it on my English WinXP.
28-12-2007

EVALUATION This code doesn't use DnD, so I'm dispatching this issue to classes_awt.
13-04-2007

EVALUATION Sounds like a DnD problem rather than an input method problem. Transferring to dragndrop for the initial evaluation.
10-04-2007

WORK AROUND None
10-04-2007