In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about what JavaFX is and how to use NetBeans7.1 to create JavaFX projects. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
JavaFX originally had two main components: JavaFX scripting and JavaFX Mobility. The core of JavaFX is JavaFX scripting, which is a declarative scripting language. It maintains a high degree of interaction with the Java class. JavaFX Mobile (JavaFXMobile) is a platform for developing Java applications for mobile devices. The following editor will explain what is JavaFX? How do I use NetBeans7.1 to create a JavaFX project?
What is JavaFX?
The JavaFX platform is the evolution of the Java client platform, which is used to help program developers quickly create and deploy rich client applications and achieve cross-platform consistency. The JavaFX platform is based on Java technology and provides a series of charts and multimedia API to simplify the development of data-driven enterprise client applications.
For Java developers, the JavaFX platform has the following advantages:
1. Because the JavaFX platform is written in the Java language, Java developers can make full use of their existing skills and tools to develop JavaFX applications.
2. Because Java is widely used, experienced Java developers can develop JavaFX applications quickly and efficiently.
3. By using Java technology on the server and client platform, the JavaFX platform reduces the investment risk by reducing the complexity of the business solution.
4. Based on the above advantages, the development cost has also been reduced.
5. The JavaFX platform provides a development framework and runtime environment for developers to create enterprise business applications and support
JavaFX applications all have a similar framework. The Main () function calls the Launch () function, and the Start () method is used to set the UI design of the application.
How to use NetBeans7.1 to create a JavaFX project
1. Download and install JavaFX2.0SDK. The default path for my installation files is C:ProgramFilesOracleJavaFX2.0SDK, C:ProgramFilesOracleJavaFXRuntime2.0.
Although I can run JavaFX applications from the command line, I'm going to use NetBeans to build my first program. NetBeans7.1beta supports JavaFX2.0, while JavaFX2.0SDK needs to be downloaded separately.
2. A new JavaFX project is created in NetBeans7.1. There are two ways to create a project.
"CTRL+SHIFT+N"
Right-click the "projects" tab and select "New Project"
Note: activation is required when creating a JavaFX project in a newly installed version of NetBeans7.1beta for the first time.
3. Once you click the "finish" button to create the JavaFX project, three files will be generated. These files include HelloJavaFX.java, Sample.java, and Sample.fxml.
After clicking the "build" button on the project, you can see what kind of file NetBeans7.1beta generates.
In the 'dist' directory, you can use the JAR and JNLP files to generate the HTML file.
JavaFX applications support manual UI layout settings, you can set the appropriate location and size attributes for each UI element, and the easiest way is to make full use of the layout panel. JavaFXSDK provides several layout container classes called panels to easily create and manage classic layouts such as rows, columns, stacks, and so on. As an adjusted window, the layout panel can flexibly and automatically adjust the position and size according to the properties of the node.
The above is what JavaFX is and how to use NetBeans7.1 to create JavaFX projects. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.