LESSON 01 6 MIN

Give your app a window

THE BIG IDEA

REMEMBER THIS

Three things to remember

LESSON EXPLAINED

See how every part works

JAVA

01

Attributes & properties (settings)

Values that set the look, size, text, layout, and current state.

02

Functions & methods (actions)

Code actions that create, read, change, and show the screen.

03

Events & callbacks (reactions)

How the app reacts to clicks, typing, timers, and other actions.

04

What runs first

The order used to build the example and make it work.

    Words to know

    Every code line explainedOpen a simple guide to the starter code

      QUICK CHALLENGE

      Waiting for your code
      Main.java

      ⌘↵ to run

      Desktop simulator
      CONSOLE

      Ready. Run your code to update the preview.