This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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