• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 1.4 TextArea

 
Ben Holtsclaw
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic