How can I disable Code Runner adding JavaFX imports?

110 Views Asked by At

I am currently writing a JavaFX program in Code Runner on my Mac. When I type in new elements, such as buttons or panes, code runner automatically puts in an import for awt like this

import java.awt.*;

It does this even if I have already imported the correct statement from javafx, for example

import javafx.scene.control.Button;

When I type in Button bt = new Button("hello"); Code Runner automatically puts in the import java.awt.*;

Is there a way to turn this off? I have looked in all of the settings for Code Runner and my preferences for java, but I can't see anything.

0

There are 0 best solutions below