NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 21, 2017, 10:25:16 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  
Wisdom is to bring the best out of our students. ...Wisdom
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 4044 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  
Wisdom is to bring the best out of our students. ...Wisdom
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Resolution of circular apertures
Optics
Fu-Kwun Hwang 0 16180 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 9198 Last post July 01, 2009, 09:28:19 pm
by Fu-Kwun Hwang
Angular momentum of a sphere
Kinematics
Fu-Kwun Hwang 0 13792 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 11789 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 3348 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 5.073 seconds with 23 queries.since 2011/06/15