NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Information about this web site => Question related to Physics or physics related simulation => Topic started by: ahmedelshfie on March 25, 2010, 07:02:15 pm



Title: Ask about text informations
Post by: ahmedelshfie on March 25, 2010, 07:02:15 pm
Hello prof  :)
My ask about for example i like to tayping some informations or explain about simulation
To make idea more simple for students what this kind of tools in easy java simulations
Can accept tayping is Data table,Text area orText field  ??? and that im ask about elemaent
Give me speac for typing what i need to explain for students idea of simulation  ;D
Respect
Ahmed


Title: Re: Ask about text informations
Post by: Fu-Kwun Hwang on March 25, 2010, 09:33:03 pm
1. I think you already understand that the information page can be used to write information related to the created simulation.
2. There are GUI elements : textArea for you to add inforation into simulation window.
You can also add TextField for input/out,
there are text element can be added to drawing panel,too!

Datatab is used to add data from the dimulation,
Those information should be added by program code if the information is from designer or simulation.

The keyboard input is related to user's input?

I do not understand what you really need?


Title: Re: Ask about text informations
Post by: ahmedelshfie on March 25, 2010, 11:01:30 pm
What i mean prof i want typing information about my simulation
In another window have picture for simulation like for example
Roller coaster that i talk with you yesterday i want typing some data
About roller coaster game in physic so in the same window that have picture
So what do you think the element can i use for typing this in formations to when
I run simulation in formations be clear down picture that i add this what i want
I'm no want typing Description
Respect
Ahmed


Title: Re: Ask about text informations
Post by: Fu-Kwun Hwang on March 25, 2010, 11:43:14 pm
I am not sure if I understood your question or not!

Here is an example to extract from the simulation and show it as a table.
Ray tracing for laser light (http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1445)
You need to check table checkbox to find table.

If you need picture, just use image GUI elements.


Title: Re: Ask about text informations
Post by: ahmedelshfie on March 26, 2010, 05:25:57 pm
I mean prof for typing some information about simulation down picture i add simulation
That i develop is tow windows first window is the interface motion second window is
I add picture about Gravitational Potential because simulation is about it So my ask
What element can i use down picture that i add for me typing explain about Gravitational Potential
For students  ;D
I'll attach picture with mark for place that i want to typing information's :)
Respect
Ahmed


Title: Re: Ask about text informations
Post by: ahmedelshfie on March 26, 2010, 07:32:57 pm
Hello Prof  :)
Sorry but is another ask about insert video by element video cllip
How i insert video prof i have the video already in my PC the problem
I insert by element video clip and i have program quick time for window
But when i run simulation video no work sp please prof what you think wrong i did
For video no run waiting answer plz
Respect
Ahmed


Title: Re: Ask about text informations
Post by: Fu-Kwun Hwang on March 26, 2010, 08:56:31 pm
I mean prof for typing some information about simulation down picture i add simulation
That i develop is tow windows first window is the interface motion second window is
I add picture about Gravitational Potential because simulation is about it So my ask
What element can i use down picture that i add for me typing explain about Gravitational Potential
For students  ;D
I'll attach picture with mark for place that i want to typing information's :)
Respect
Ahmed
There are manuy ways to do it.
Please check out the following simulation as an example:
I add tabbed panel: the first one for the simulation, the second one for the information.
I add drawing panel to insert image. then add another panel to insert textarea to write information for user.
[ejsapplet]

I have never use video before. I tried it but I can not make it work. So  I do not know.
You might need to ask the EJS author to find out the answer. May be you can visit EJS home (http://www.um.es/fem/EjsWiki) and ask for help!


Title: Re: Ask about text informations
Post by: ahmedelshfie on March 28, 2010, 09:27:48 pm
Hi Prof  :)
I discover how add video first must have program
Quick time for window after install Quick time begin
Make video by snapshot for simulation or capture video for simulation
And after it "add element" video and insert your video that you do
After this you can control in show video by time or velocity etc..
For video begin show for example from left to right or from up to down like it
I know all this by my self i send email to home ejs about element add video
But they No answer me so i stay 2 days still i discover  ;)
This element can help for do presentation for simulation is very interesting
Respect Prof
Ahmed


Title: Re: Ask about text informations
Post by: Fu-Kwun Hwang on March 28, 2010, 10:19:02 pm
Thank you for your information. It is very valuable.
I did not need to use vodeo in the past so I have never used that element.
The first time I tried it was when you post the questions a few days ago.
I did have quicktime installed in my computer. However, it was not working.
May be I need to re-install it again.

It is still the same, I got error in the console when I tried to add video element into drawingPanel.
May be I will need try to ask Paco about this problem directly.


Title: Re: Ask about text informations
Post by: ahmedelshfie on March 29, 2010, 06:10:17 am
Is good idea Prof and if you can ask too about element Web cam and
Cam Image too  for have all information's about every element in ejs 
Thank you
Respect
Ahmed


Title: Re: Ask about text informations
Post by: Fu-Kwun Hwang on March 29, 2010, 09:22:37 am
You can find information about GUI elements from http://www.um.es/fem/EjsWiki/Main/Elements

There are also information about pre-defined methods http://www.um.es/fem/EjsWiki/Main/PredefinedMethods