| Optimize the positioning of controls onto StyledText [message #1041715]
||Mon, 15 April 2013 08:58
| aaa ass
Registered: April 2013
I need to "setLocation" to many controls onto "StyledText" when "paintObject" method of "PaintObjectListener" is fired. |
Inside I find and store the positions as "Point" into arrays and after all the positions are stored then I run a "for" loop with my lists of "controlls[i].setLocation(position.get(i));"
The problem I face is that having many controls to draw they appear on the "StyledText" one after another with a speed depending on their number(many=very slow).
After I analyzed this issue with "VisualVM 1.3.5" It appears that I have this:
Can someone please tell me how can I draw all the controls at the same time and faster?
Powered by FUDForum
. Page generated in 0.02583 seconds