Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Build a JavaFX Application Graphical User Interfaces Getting Started

Pierre-Alexandre GROSS
Pierre-Alexandre GROSS
2,832 Points

Problem with "Text"

The Text statement isn't recognized, and I connot choose the Text Scene Text in the alt+enter menu. I get that error when I try to run the code

Error:(18, 20) java: javax.xml.soap.Text is abstract; cannot be instantiated Error:(19, 27) java: no suitable method found for add(javax.xml.soap.Text) method java.util.Collection.add(javafx.scene.Node) is not applicable (argument mismatch; javax.xml.soap.Text cannot be converted to javafx.scene.Node) method java.util.List.add(javafx.scene.Node) is not applicable (argument mismatch; javax.xml.soap.Text cannot be converted to javafx.scene.Node)

1 Answer

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Whoops check your imports! You have the wrong Text class imported.

Hope it helps!