These demos show how any complex Swing application can run unmodified as a browser-based Web application. In these demos, 100% of the execution is running client-side, with no server component other than a regular HTTP server.
The four demos below are standard example applications of the Swing graphics toolkit, a GUI system fully implemented in Java which does not depend on any system-specific component. Swing was designed to provide a consistent look and feel across devices and operating systems, and still enjoys a large popularity within legacy Java applications.
CheerpJ can be used to convert any Swing application directly from its original .jar archive. Since CheerpJ provides a full Java SE runtime environment compiled from OpenJDK, the look and feel of a Swing application running on the browser with CheerpJ will be identical to that on a JVM.
The applications below (each demo corresponds to an independent application) were converted from the original Java applications found here
.
When loading this demo page, part of the CheerpJ runtime is downloaded automatically, corresponding to approximately 25 MB of data. When each application is run, the corresponding .jar archive and converted JavaScript code are downloaded, as well as any further component of the runtime or library required by the application. After the first application is loaded, you will notice that the following ones will take significantly less time to download and run. This is due to the fact and all required runtime modules are already cached and initialized and only the application-specific .jar and JavaScript code are downloaded.
注意:本文来自网友投稿。本站无法对本文内容的真实性、完整性、及时性、原创性提供任何保证,请您自行验证核实并承担相关的风险与后果!
CoLaBug.com遵循[CC BY-SA 4.0]分享并保持客观立场,本站不承担此类作品侵权行为的直接责任及连带责任。您有版权、意见、投诉等问题,请通过[eMail]联系我们处理,如需商业授权请联系原作者/原网站。