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 - Jul 3, 2010 at 1:26PM
Vasudeva Rao Aravind
3 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 - Jul 23 2010 4:14PM
113 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 - Aug 07 2010 12:10PM
Vasudeva Rao Aravind
3 Posts

Hi Wolfgang,
Thank you!

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics