APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

view.print(String message) method

Return to the EJS Modeling forum
Login to post to this thread

view.print() method for multiple text areas
Alberto Porras
5 Posts

I've recently started programming with EjsS and one of the problems I've come across is when using multiple text areas for displaying strings. As far as I know, you have two predefined methods: _view.print() and _view.println() which enables you to print a string in the last text area created. But, what code or method would you use for displaying text strings in text areas created before the last one, for which both aforementioned methods don't work?
I have tried using view.print(), but I might be doing something wrong...

Thank you in advance!

Current Replies - View all
Re: view.print() method f...   (lookang - )
Re: Re: view.print() meth...   (Alberto Porras - )
Re: view.print() method f...   (Francisco Esquembre - )
Re: Re: view.print() meth...   (Alberto Porras - )
Re: Re: Re: view.print() ...   (Francisco Esquembre - )
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book