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 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