Here is a quetsion from one of the user:
how to control the resolution of a sphere by draging a slider
The resolution property for the sphere can be a [b]String[/b] or an [b]Object[/b].
I will simply define a string: resolution, and two variables for slider to set resolution in two different direction. i.e. cs,ps
Then, a function setResolution is defined as the following (which will be called when sliders for cs or ps has been changed).
public void setResolution () {
The following is the result of the code.

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/sphereresolution_pkg/sphereresolution.propertiesFull screen applet or Problem viewing java?Add to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1522.8kB):double click downloaded file to run it. (1 times by 1 users) , Download EJS source (8 times by 2 users) View EJS source