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.

Adjusting button size post and replies

Return to the Adjusting button size thread
Login to post to this thread

Adjusting button size
Vasudeva Rao Aravind
5 Posts

Can somebody tell me how to change the "button" or "parsed text field" in EJS? I right clicked on the button/field and tried to change the 'size' parameter in the properties, but it does not work. I also tried resetting the simulation, but it does not work either. Please help!


Replies to Adjusting button size

Re: Adjusting button size -
Wolfgang
146 Posts

Double click on the button instance displayed in the Tree of Elements in the EJS View and set the button's size properties in the inspector panel.  Java uses layout managers to control appearance and most layouts will respect the size property.



Re: Re: Adjusting button size -
Vasudeva Rao Aravind
5 Posts

Hi Wolfgang,
Thank you!



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book