The bachelor thesis deals mainly with the JavaFX2 library and its innovations. An aim is to acquaint readers with wider possibilities and help them with a transition from Swing to JavaFX2. In the thesis there are gone into benefits JavaFX2 which is accompanied by a source code examples for an illustration. A part of the thesis is also an application which shows differences between Swing and JavaFX2 both a graphical view as well as a viewing of the source code. Most of the information contained in this work is also on a web site http://www.javafx2-swing.cz/, which serves as a guide for JavaFX2 library and where it is possible to download the application. The work is begun with an explaining a JavaFX platform. Then there is mentioned JavaFX2 ...