import g4p_controls.*;
GTextArea txa;
GButton show;
void setup(){
size(700,700);
background(0,0,255);
show=new GButton(this,20,20,50,60,"Show");
txa=4new GTextArea(this, width/2-100, height/2-80, 200, 160);
txa.tag = "Raz";
txa.setPromptText("Text area 1);
}
public void handleButtonEvents(GButton button,GEvent event){
if(event == GEvent.CLICKED){
String[] lines = txa.getTextAsArray();
}
How can I make lines[] to global String?