Creating Applications in Javafx2 is simple. Creating using Eclipse is simpler. It gives you the features of Auto Completion, error highlighting etc. Moreover, it gives you the chance of working with your favourite IDE.
Open Eclipse and change perspective to Java (not required though).
Right Click on your package explorer view or navigator view if you like to work on it. From the pop menu that just opened, select New -> Other
You should be able to locate JavaFX in the Popup Menu. Select JavaFX Project under the same.
If you are not able to locate JavaFX it means you have not installed e(fx)clipse plugin. Refer to prev blog if you want to.
The next opens a New Project Wizard. Supply the project Name and you should be good.
Next step create your project structure the way you like. My project structure structure looks something like below.
1. lib : store your jars here
2. src : store your java files here
3. build : FX project build.
4. resources : store stuff apart from java files.
But you are free to create your own structure. The structure here does not matter much as hence you can keep it the way you are used to.
Open Eclipse and change perspective to Java (not required though).
Right Click on your package explorer view or navigator view if you like to work on it. From the pop menu that just opened, select New -> Other
JavaFX Wizard |
You should be able to locate JavaFX in the Popup Menu. Select JavaFX Project under the same.
If you are not able to locate JavaFX it means you have not installed e(fx)clipse plugin. Refer to prev blog if you want to.
The next opens a New Project Wizard. Supply the project Name and you should be good.
Next step create your project structure the way you like. My project structure structure looks something like below.
Project Structure |
1. lib : store your jars here
2. src : store your java files here
3. build : FX project build.
4. resources : store stuff apart from java files.
But you are free to create your own structure. The structure here does not matter much as hence you can keep it the way you are used to.
No comments:
Post a Comment