Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
akpeter
akpeter's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Control P5 setText() problem - arrayIndexOutofBounds error!
[0 Replies]
29-Sep-2010 09:06 PM
Forum:
Contributed Library Questions
Hi,
I am using controlP 5 library to display text or rather a paragraph of words or more (1000 words).
I keep getting random arrayIndexOutofBoundsException error when using setText(). here's my code....
public void controlEvent( ControlEvent theEvent ) {
if( theEvent.isGroup() ) {
eventValue = int(theEvent.group().value() );
println("eventValue before display "+eventValue);
}
textArea_3 = controlP5.addTextarea ("T3","T", (int)(width* 0.24), (int)( height * 0.045 ), 1100, (int)(height * 0.135) );
sPost = ""+post.get(eventValue);
textArea_3.setText( sPost );
Hope you can advise, how I should solve this problem? May I know if there are other similar library to controlP 5?
AK
«Prev
Next »
Moderate user : akpeter
Forum