The setCurrent() method is a method of the Display class. It is used to display objects on the screen. The general syntax of this method is as follows:
The instance of the class to be displayed is passed as an argument to this method. For example, the syntax below is used to display a Form instance named form: