Skip to content

An experiment to separate UI/UX (using JS, HTML and CSS) from code behind (Java) and package as a single executable file

Notifications You must be signed in to change notification settings

shivtu/JavaWebView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaWebView

Use JavaScript on the front-end and Java for code behind

Why would i use HTML, CSS and JavaScript anyway ? If i there are frameworks like Swing, AWT, JavaFX etc
  • Provide a complete separation of front-end and code-behind
  • HTML, JavaScript and CSS helps you build interactive UI/UX reletively easily and quiclky
  • It is not very feasible to access native APIs using JavaScript. (Java can save the day)
Why won't i use NodeJS if it were about building UIs using JS ? Isn't C++ add ons more than enough to give that extra bit of super power ?
  • UI framworks running on NodeJS usually build a bulky app.
  • C++ / C is tad bit trickier than Java. Isn't it ?
  • Java is battle tested, whereas nothing compares to JavaScript for building UIs
How does it work anyway ?

The idea is simple
Spin up a localhost that acts as the middleware bettween the HTML, JS, CSS pages and the code behind (using Java)

Do i have to write all the JS and CSS to build that fancy GUI ?

No Bootstrap CDN and Jquery copied on the local file saves a lot of time and helps build good looking and interactive GUIs

About

An experiment to separate UI/UX (using JS, HTML and CSS) from code behind (Java) and package as a single executable file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published