Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Build a JavaFX Application Build a Pomodoro App Adding Styles

ofir Dahan
ofir Dahan
12,705 Points

I think something is broken and i can't find it...

I'm fairly sure this is the correct answer to advance in the challenge but when I try submitted, i get these crazy syntax errors...

public void switchBrand(Brand brand) {
    clearBrandStyles();
    container.getStyleClass().add(brand.toString().toLowerCase());

}

Returned:

Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280) at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:227) at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:173)

1 Answer

I encountered a similar error previously, I just wait for a bit, (like several hours) and try again. It happens to resolve my itself. Probably the teamtreehouse parser failed for a bit and the team has quickly resolved the issue