Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

Oracle have said that they will be pulling the development from Swing in the near future and putting it into JavaFX.

The reasoning behind

Java Swing being easier

to implement is because the programming is generally

all done in java.

In JavaFX, you can use FXML(XML based markup language), CSS, Media, Animation, HTML contect etc...

Efficiency:

Swing

is more efficient if the intended purpose is

that of simple nature.

JavaFX

is better for creating

aesthetically pleasing

content.

JavaFX has special effects

The javafx.scene.effect package contains a number of classes that can easily apply special effects to any node in the scene graph. These classes let you easily apply shadows, reflections, blurs, and other interesting visual effects that can transform the appearance of GUI.

JavaFX is skinnable with CSS

Every aspect of the appearance of your user interface can be set by a style rule, You can change the entire appearance of your application with a single method call.

JavaFX has improved event handling

The biggest reason event handling is improved in JavaFX is because of its reliance on properties.

Differences

In Swing, a layout is associated with a JPanel. The top-level JPanel gives the basic layout for the frame. you must create additional JPanels if you want to nest.

In JavaFX, layouts are subclasses of the Node class. Layouts contain a collection of nodes: a control, a shape, or another layout. This scheme is much less cumbersome than Swing's association of layouts with panels.

JavaFX

is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.

On paper, very similar to

Swing

but in reality, there are many differences,

Some beneficial, others a hindrance

Java Swing vs JavaFX

What are they used for?

Swing

is a GUI widget toolkit for Java.

developed to provide a sophisticated set of GUI components.

  • Summary
  • What are they used for?
  • What is the difference?
  • Which is more efficient?
Learn more about creating dynamic, engaging presentations with Prezi