0

Squeak: Creating new SystemWindow

It’s very easy to get started with Squeak/Smalltalk. You can use Workspace and Transcript for basic programming tasks. But soon you need your own user interface, and it’s good to get started with the SystemWindow object in this case.

Here is some Smalltalk code that can help you create and display a SystemWindow.

Code

window := SystemWindow new.
window setLabel:'New Window'.
pasteUpMorph := PasteUpMorph new.
pasteUpMorph extent: 640@480.
window openInWorld.

Screenshot

humayun