setVisible

public static void setVisible(boolean visible)(source)

Sets the visibility of the world to the specified visibility value. If no global world exists, create a global world with the size (10, 10).

Parameters

visible

if true the world will be visible on the graphical user interface