Java Swing TextArea unexpected attitude -


when call method inside class, works. when call outside of class, textarea doesn't change. while string values correct.

public void printmessage(string prefix, string message) {          system.out.println(prefix + message); // works          textarea1.settext(textarea1.gettext() + prefix + " " + message + "\n"); // works if called class     } 

solved myself. there no problem code. didn't initialize instance of class properly.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -