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

error when running after compiling

I have the same code as the video before running the first textfield and intelliJ throws me this error

Exception in Application start method Exception in thread "main" java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: Children: cycle detected: parent = VBox@32606e62, node = VBox@32606e62 at javafx.scene.Parent$2.onProposedChange(Parent.java:445) at com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:234) at com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:103) at sample.Main.start(Main.java:32) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326) at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) ... 1 more I dont know what happened, im kind of lost....

Thanks for your time :)

2 Answers

Please paste your code.

It would be great to upload the project GitHub and share a link here ...

If it is problematic for you, at least post as many classes from project as you can.

Main class should be enough, but the problem can be deeper...

I solved it, I didn´t see that I putted the box inside the box.add.... My bad. Ill learn how to use gitHub, im realizing is very necessary these days.

Thank you for your time :)