APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Website Detail Page

Item Picture
written by Robert Hanson
The OSP project has partnered with developers at St. Olaf College  to convert OSP Java programs (applets and applications) to JavaScript using the java2script/SwingJS framework developed by Bob Hanson.  The SwingJS  website contains physics, math, and chemistry conversion examples.  They are not "ported" to JavaScript. They are not recreated in JavaScript. The JavaScript "applets" are created in parallel with standard Eclipse-based Java development, along with their Java counterparts. In the end, the original functional of the Java applet or stand-alone application its virtually identical JavaScript counterpart, with all the layout, events, and functionality of the original. One of the most powerful and important features of Java -- reflection (the loading of classes on the fly, only as needed) -- is fully preserved, providing the modularity necessary for complex web application development.


The SwingJS developers maintain a GitHub repository for Java developers who want to convert their Java applets or Java applications to JavaScript, allowing continued, simultaneous one-source development of both Java and JavaScript.
Subjects Levels Resource Types
Education Practices
- Curriculum Development
- Technology
= Computers
Other Sciences
- Computer Science
- Professional Development
- Graduate/Professional
- Lower Undergraduate
- Upper Undergraduate
- Instructional Material
= Interactive Simulation
- Tool
= Code
Intended Users Formats Ratings
- Learners
- Professional/Practitioners
- Educators
- text/html
- application/java
- application/javascript
  • Currently 0.0/5

Want to rate this material?
Login here!


Access Rights:
Free access
License:
This material is released under a GNU General Public License Version 3 license.
Rights Holder:
Robert Hanson
Record Cloner:
Metadata instance created February 5, 2020 by Wolfgang Christian
Record Updated:
February 5, 2020 by Wolfgang Christian
Last Update
when Cataloged:
February 5, 2020
ComPADRE is beta testing Citation Styles!

Record Link
AIP Format
R. Hanson, , WWW Document, (https://chemapps.stolaf.edu/swingjs/site/swingjs/examples/index.html).
AJP/PRST-PER
R. Hanson, SwingJS: Converting Java Programs to JavaScript, , <https://chemapps.stolaf.edu/swingjs/site/swingjs/examples/index.html>.
APA Format
Hanson, R. (2020, February 5). SwingJS: Converting Java Programs to JavaScript. Retrieved October 24, 2020, from https://chemapps.stolaf.edu/swingjs/site/swingjs/examples/index.html
Chicago Format
Hanson, Robert. SwingJS: Converting Java Programs to JavaScript. February 5, 2020. https://chemapps.stolaf.edu/swingjs/site/swingjs/examples/index.html (accessed 24 October 2020).
MLA Format
Hanson, Robert. SwingJS: Converting Java Programs to JavaScript. 5 Feb. 2020. 24 Oct. 2020 <https://chemapps.stolaf.edu/swingjs/site/swingjs/examples/index.html>.
BibTeX Export Format
@misc{ Author = "Robert Hanson", Title = {SwingJS: Converting Java Programs to JavaScript}, Volume = {2020}, Number = {24 October 2020}, Month = {February 5, 2020}, Year = {} }
Refer Export Format

%A Robert Hanson
%T SwingJS: Converting Java Programs to JavaScript
%D February 5, 2020
%U https://chemapps.stolaf.edu/swingjs/site/swingjs/examples/index.html
%O text/html

EndNote Export Format

%0 Electronic Source
%A Hanson, Robert
%D February 5, 2020
%T SwingJS: Converting Java Programs to JavaScript
%V 2020
%N 24 October 2020
%8 February 5, 2020
%9 text/html
%U https://chemapps.stolaf.edu/swingjs/site/swingjs/examples/index.html


Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.

Citation Source Information

The AIP Style presented is based on information from the AIP Style Manual.

The APA Style presented is based on information from APA Style.org: Electronic References.

The Chicago Style presented is based on information from Examples of Chicago-Style Documentation.

The MLA Style presented is based on information from the MLA FAQ.

Save to my folders

Contribute

Similar Materials

Featured By

Open Source Physics
Feb 5 - Mar 5, 2030

OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book