Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am building a program in Java and I want to make users able to create plugins in JavaScript. I need a way to make native functions in a "standard lib" so people can use the methods inside the program.
Also I want to make an event system, so this means calling functions inside the JavaScript plugin. How could I achieve this?
To run java-script in java you may use Rhino library in java 1.7
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino
example:
https://github.com/mozilla/rhino/blob/master/examples/Control.java
or Nashorn in java 1.8
http://www.oracle.com/technetwork/articles/java/jf14-nashorn-2126515.html
example:
http://www.infoworld.com/article/2607426/application-development/nashorn--javascript-made-great-in-java-8.html?page=2
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 months ago.
Improve this question
I was searching for a ready-to use web component for my Vaadin&Spring Boot application, and faced some questions.
As a person who does not into JS and frontend at all, i'm struggling in integration of those components. Currently I'm interested in this one: https://vaadin.com/directory/component/bluewatertrackspaper-countries/overview. I simply do not know what to do after adding a dependency via Maven. Could someone explain a way how to use those components similarly to default Vaadin components, using java classes?
Unfortunately the webcomponent you linked is built with polymer2. You can't use it in Vaadin 14+, except if you are running it in compatibility mode which I don't recommend.
It's easier to do it in Java with a Combobox.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a professor that insists we code our app in Java. No one in my group really knows Java. He said we are free to include JavaScript and HTML and CSS.
We want to know how we can essentially make an HTML, JavaScript, CSS app and just wrap it/ embedded it in a Java app. I'm not sure where to start.
Thanks
You can build Java web application with frontend using HTML, JavaScript and all that stuff and Java on server side.
Check these links:
http://www.springboottutorial.com/spring-boot-with-static-content-css-and-javascript-js and
https://dzone.com/articles/java-8-springboot-angularjs-bootstrap-springdata-j
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I've created a few simple HTML/CSS/JS games. This time a few friends and I are going to create another game that people can download from some website. We want to use HTML CSS and JS even though that is probably not the best option.
All the games I created before I've used Chrome to run them. Of course I can't just make people run my games with Chrome. So how should I run it?
You can try using Electron (http://electron.atom.io/). You can use it to build desktop apps using Html/Css/Js.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm still starting to create a Cordova plugin, I've read their documentation and an article on how to create one.
I found it simple and easy to create however, aside from creating I would like to know if what are the best practices and/or useful tools to be used for debugging and testing the plugin. Also what would the best OOP Javascript pattern to implement?
Thanks!
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
Is SmartClient same with SmartGWT? If not what's the difference between the two and which is a better tool to create a web application?
Many answer on the web about this:
Smartclient is the base Javascript framework
Smartgwt is a Gwt wrapper of this framework.
You choose the one whiche is more appropriate to your development skills and uses
SmartGWT is based on java code and when compiled it transforms it into java script, is a heavy since it transforms java code into js.
SmartClient is a framework based on js, you can use its components in an xml page and you manipulate them in Js, and it’s light.