Hi Folks,,,, The much awaited feature from java and my favorite topic comes here
Yes!!! Its JavaFX from java to build rich user interfaces much
better than swings and a most powerful framework ever:-)
Well learning and understanding it, is little tricky at
beginning but bet me, as you learn more about it You will LOVE it (Take my word
for it)
Want to know the power of JavaFX??????
Here we go...
1.Can build rich user interfaces
2. Some complex interfaces can be built
easily
3. JavaFX Scene builder helps to drag and
drop the features
4. XML based very easy to build web user
interfaces
5. Task and worker concept similar to
threads but developed in view of designing interface, to update it
dynamically
6. It continues guys !!!!
Lets Get into JavaFX
1. First and foremost is, your
Java should be configured properly with the version higher than Java 16
3. Next comes NetBeans IDE.. Get latest
version of it (am using 7.3version) from here (As
JavaFX JavaFX Scene builder can easily be integrated with
Netbeans) and Select JavaSE - 80Mb
4. Now get latest version of JavaFX
from here (JavaFX !!!) YES! Don’t be surprised
you are yet to get more :P. (am using JavaFX 2 with Java
17)
And guys, do remember JavaFX needs separate JDK... So if you have java then download Stand alone else download bundle of JavaFX with Java. (Latest version of Java has JavaFX built in, so
no worries if you have latest one)
And guys, do remember JavaFX needs separate JDK... So if you have java then download Stand alone else download bundle of JavaFX with Java. (Latest version of Java has JavaFX built in, so
no worries if you have latest one)
6. That’s all, don’t be scared, nothing
more to download so chill and install all the above in this
order – JavaFX,JavaFX Scene Builder,NetBeans
Note: While installing NetBeans you may get warnig saying your java version should be higher than 16, as i said download latest version and point your netbeans to java and ignore the warning if it still exits
Note: While installing NetBeans you may get warnig saying your java version should be higher than 16, as i said download latest version and point your netbeans to java and ignore the warning if it still exits
7. Done?? Ok now, open NetBeans IDE
Integrate your installed JavaFX Scene
Builder with Net Beans
8. Goto Tools-> options in NetBeans
9. Goto JavaFX tab under that select the
JavaFX Scene Builder by browsing or if it appears already select it and
click ok
10. Now, File -> New Project
dialogue box appears
11. Select JavaFX->JavaFX FXML
Application Project and click Next
12. Give your Project name and make sure
platfrom is JavaFX and click finish
13. Thats all!!! Now click run or Run->
run applicationXX
14. You can see your first JavaFX project
running :)
15. To edit your front end browse your project and
double click or open Sample.FXML
16. It gets opened in JavaFX Scene Builder
now edit it and Save it
17. Run again to see the changes or right
click on Sample.FXML and select edit the file which will be opened directly in
NetBeans, now you can see the changes
18. Use Samplecontroller.java file to
create events for your elements added in Sample.FXML(you can see the sample
event)
Thats it read both Sample.FXML and Samplecontroller.java file and try to create good Interfaces :)
Leave your doubts or suggestions in comments section..
No comments:
Post a Comment