aspose file tools*
The moose likes Java in General and the fly likes Java 1.4 TextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java 1.4 TextArea" Watch "Java 1.4 TextArea" New topic
Author

Java 1.4 TextArea

Ben Holtsclaw
Greenhorn

Joined: Jun 26, 2002
Posts: 1
I'm having problems figuring out why this snippet of code behaves differently on my two PCs:

txtRules is defined as an AWT TextArea.
The code performs as I would expect on a machine with the JRE 1.3: the word test is printed ten times, each on a separate line in the text area.
However, on my desktop machine with JRE 1.4, the word test is printed in the text area three times per line. In the text area, I see:
testtesttest
testtesttest
test
If I build the code with the 1.3 compiler and run it under the 1.4 JVM, I see the same thing. Both PCs are running Windows 2000. The PC with JRE 1.3 has Win2k Service Pack 1 installed. The PC with JRE 1.4 has Service Pack 2 installed. Why do these two behave differently? Thanks for your help!
-Ben
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Bug 4701398 from JavaSoft

Bug Id 4701398
Votes 0
Synopsis REGRESSION: TextArea.append does not work consistently with \r.
Category java:classes_awt
Reported Against 1.4
Release Fixed
State In progress, bug
Related Bugs
Submit Date Jun 12, 2002


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java 1.4 TextArea