Hi gurus! I add a Panel divided in two, then I remove the 2nd and I want to add it again (with new data) when a button is pressed. When I add it 2nd time it stays blank. This is a sample code: public class XXX extends YYY { String currentDirectory="D:\\"; ZZZRenderer bkCanvas=new ZZZRenderer(currentDirectory); ZZZTest test=new ZZZTest(); TextField setField=new TextField("",20);
if (evt.target instanceof Button) { currentDirectory = (String)arg; remove(bkCanvas); bkCanvas=new ZZZRenderer(currentDirectory); add(bkCanvas); } } } In the console I get the error: Error null