0 Members and 1 Guest are viewing this topic.
Exception in thread "AWT-EventQueue-0" org.jsfml.internal.JSFMLError: This thread is not allowed to create a window on this system. If you are running on Mac OS X, you MUST run your application with the -XstartOnFirstThread command line argument! at org.jsfml.window.Window.create(Unknown Source) at org.jsfml.graphics.RenderWindow.create(Unknown Source) at org.jsfml.graphics.RenderWindow.<init>(Unknown Source) at grahique.Jeu.<clinit>(Jeu.java:25) at grahique.SelectLevel.actionPerformed(SelectLevel.java:113) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)Anyone of you does have an idea?
If you are running on Mac OS X, you MUST run your application with the -XstartOnFirstThread command line argument.
On OS X, windows and events must be managed in the main threadYep, that's true. Mac OS X just won't agree if you try to create a window or handle events in a thread other than the main one.