Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java applet TextArea performance issue  RSS feed

 
Michael L. Zhang
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using TextArea in java applet awt to display the logs in a separate frame within our web application. The application keep generating logs, and then the TextArea keep scrolling and updating.

We found the whole web application becomes slower over time, the response time degradeded from 3 second to more than 1 minute for each navigation. But if I remove the logs in the TextArea, the web application become very fast again.

It proved the Applet's TextArea is the root cause of our performance issue. Does any one encounter this same problem? What is your suggestion to handle this issue? BTW, We are using Sun JVM 1.3.1_14 to compile the java Applet.

The below is the related code in applet.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please don't cross-post; I deleted the other copy of this thread.

TextArea, like all AWT components, uses the platform's native widgets, so any performance issues may just be endemic to the platform. The component that TextArea uses on Windows is bounded at 32K characters, which is obviously not ideal for your application anyway; you might consider using a JApplet and Swing instead.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!