JaroslavTulach / oraclejet4j

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OracleJET for Java Demo

This is a trivial modification of the skeletal OracleJET project to demonstrate coding the application logic in Java.

To try the demo invoke following three commands:

$ git clone https://github.com/jaroslavtulach/oraclejet4j.git
$ cd oraclejet4j
oraclejet4j$ JAVA_HOME=/jdk-11/ ./gradlew run

a window with WebKit is going to be shown. Click the top or bottom navigations elements and observe that the user name in top right corner is changing its case with each click. That's thanks to the code in RootViewModel.

Debug the Java Code

Open the project in your IDE, open src/main/java/OpenJFXLiteDemo/RootViewModel.java in the editor. Place breakpoints for example to changeUserLoginCase method. Then launch the application as:

oraclejet4j$ JAVA_HOME=/jdk-11 ./gradlew run --debug-jvm

connect your IDE to port 5005 and debug. Once you click a hyperlink, your break point shall be hit.

Modify the source code, kill the gradlew process, launch again. Observe your changes.

About


Languages

Language:JavaScript 82.5%Language:CSS 9.2%Language:SCSS 8.3%Language:HTML 0.0%Language:Java 0.0%