JavaFX preface: javafx
I did JavaEE development in an Internet company, and the company developed mobile products, but there was no PC-end products, so the leaders assigned the task to the author.
When I use Java to develop a PC client, my first response is to use the swing API. However, the requirement of the product is that the client can embed a browser engine to render webpage content. Therefore, I accidentally discovered and learned about JavaFX through Baidu.
After compiling some small demos, it is found that JavaFX is indeed better than swing:
1. Window and component styles. JavaFX is more beautiful than swing, and JavaFX supports CSS styles.
2. Put the static resource file under the src project. After JavaFX is packaged into a jar file, the resource file cannot be found, and swing will encounter this problem.
3. JavaFX built-in WebView API can render html to read webpages. swing does not seem to have. (Swt has)
The above is a summary of JavaFX and swing.
After two months of hard work, I completed the task. The next few blog posts will record the problems, solutions, and experiences encountered during my work during this period!