Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sketch launching on second display that's not currently in use #3082
I'm on OSX 10.8.5 and I'm unable to launch a sketch (no window is created in Java mode). However, I am able to write a program that prints to the console (still no window created). This is happening for me with Processing 2.2.1 and Processing 3.0a5. I'm running the following Java version:
Hey I just ran into this problem too. Turns out I just wasnt making the sketch visible. On your dock you should see a that a java application is running, try right-clicking it, go to options, and click display on [your display]. I had this problem because I use a thunderbolt display plugged in to my laptop and I guess it didnt know which display to put it on.
changed the title from
Processing doesn't launch sketch
Sketch launching on second display that's not currently in use
Feb 4, 2015
Is the external display suppose to be the default display in preferences?
I think Javas GraphicsEnvironment getScreenDevices() reads the display as being there if its plugged in regardless of whether it's on or off. Therefore the display is included In the array of GraphicsDevices returned and it looks like the display set in preferences exists.
I'm not sure how fixable this is. There may be a lower level way to fix this but a quick fix could be to reverse the order of the devices returned for OS X. Making the sketch default to displaying on the computer's screen instead of the external. This way if the user wants the sketch to default to running on the external display they have to set it in preferences and are aware the preferences menu exists. If they experience this bug, they will know the preferences menu exists, intuitively they might understand why the sketch is not appearing, and would know how to change there settings to fix the bug.