Forums Register Login

java applet TextArea performance issue

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 914 times.
Similar Threads
Maintaining Session
Dual Authentication Issue
Problems with repainting in 1.4 AWT
[Hibernate Query] Slow performance with Oracle as compared to MySQL
Deploying Java stand alone application in Weblogic server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:43:26.