• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java 1.4 TextArea

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic