NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
December 11, 2017, 10:56:53 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Choose a job you love, and you will not have to work for a day in your life." ...Confucius (551-479 BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: how to control the resolution of a sphere by draging a slider  (Read 4131 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
on: January 25, 2010, 09:03:56 am » posted from:Taipei,T\'ai-pei,Taiwan

Here is a quetsion from one of the user:
Quote
how to control the resolution of a sphere by draging a slider
The resolution property for the sphere can be a String or an Object.
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).
Code:
public void setResolution () {
  resolution="1,"+cs+","+ps;
}
The following is the result of the code.

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ 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
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!
Logged
Pages: [1]   Go Up
  Print  
"Choose a job you love, and you will not have to work for a day in your life." ...Confucius (551-479 BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Resolution of circular apertures
Optics
Fu-Kwun Hwang 0 16249 Last post May 11, 2005, 09:22:47 am
by Fu-Kwun Hwang
how to wrap a graphics on a 3D sphere in Ejs ?
Questions related to EJS
lookang 3 9381 Last post July 01, 2009, 09:28:19 pm
by Fu-Kwun Hwang
Angular momentum of a sphere
Kinematics
Fu-Kwun Hwang 0 13937 Last post July 05, 2009, 09:28:21 pm
by Fu-Kwun Hwang
micrometer with .001 mm or .001 inch resolution /dial mode
misc
Fu-Kwun Hwang 0 12012 Last post January 13, 2010, 05:55:23 pm
by Fu-Kwun Hwang
micrometer with .001 mm or .001 inch resolution /dial mode
misc
ahmedelshfie 0 3445 Last post April 19, 2010, 06:15:49 pm
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.049 seconds with 22 queries.since 2011/06/15