tags:

views:

38

answers:

1

On teaching JavaFX, we use some older files containing Swing components. They run OK in NetBeans 6.8, but in NetBeans 6.9.1 many following warnings are generated:

warning: [warnonuse] Package javafx.ext.swing has been used. import javafx.ext.swing.SwingToggleButton;

Is there any way to suppress generation of these warnings?

A: 

In the desktop.properties file under your JavaFX SDK profiles directory, you can change the property swing_compile_opts="-XDwarnOnUse=javafx.ext" to swing_compile_opts=

Under Netbeans this would be in NETBEANS_HOME/javafx/javafx-sdk/profiles.

This only applies to 1.3.1 and most likely will be totally different in the next major release of JavaFX.

JimClarke