levo

Graphical User Interface Objects and Events

  • 11 subtopics
  • 33 things to know
  • AS Unit 2

What Graphical User Interface Objects and Events covers

Graphical User Interface Objects and Events is examined in Unit AS 2, Event Driven Programming — an internally assessed portfolio. It covers graphical user interfaces and console programs, forms and their common properties, labels, text boxes and text areas, buttons, check boxes and radio buttons, lists, combo boxes and other selection controls, properties, methods and events of a GUI object, containers, panels and laying out a form, the event loop and the event queue, event handlers and registering a listener, the event object and reading it inside a handler and button, mouse and keyboard triggers.

Where it is assessed

AS Unit 2

Event Driven Programming — an internally assessed portfolio.

Check the CCEA specification ↗

The 11 subtopics

Each one has its own page.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

A list box is empty and the code asks for the selected index. State the value returned and why the program must check it.

Key term

A mouse handler contains if (e.getClickCount() == 2) { lblOut.setText("Opened"); } and the user double clicks. Explain what the label shows and why.

Process

Describe the sequence of mouse events raised by one complete click on a button.

Key term

What is a graphical user interface?

Key term

What is a form in an event driven application?

Key term

What is a label used for on a form?

Key term

The Java code JButton btn = new JButton("Save"); btn.setEnabled(false); runs when the form loads. What does the user see, and what happens on a click?

Key term

What is a property of a GUI object?

Key term

What is a container in a graphical interface?

Key term

What is the event queue?

Key term

What is an event handler?

Key term

How does the flow of control in an event driven program differ from that of a console program?

Key term

Name five properties a form typically has.

Key term

What kind of data does a text box always give back to the program?

Key term

Why disable a Submit button until a form is complete rather than showing an error after the click?

Key term

What is a list box?

Key term

What is a method of a GUI object?

Key term

Give two examples of a container.

Key term

Describe the event loop.

Key term

The Java line btnSave.addActionListener(handler); appears twice in the same setup code. How many times does the handler run for one click?

Key term

Name three pieces of information an event object can carry.

Key term

Name three kinds of user action that commonly act as triggers.

Key term

Name four visual objects a user expects to find on a typical desktop window.

Key term

What is the difference between a form's title and its name?

Key term

The Java line int age = Integer.parseInt(txtAge.getText()); runs while txtAge contains the word seventeen. What happens?

Key term

What is a check box used for?

Key term

How does a combo box differ from a list box?

Key term

Give the key difference between setting a property and calling a method.

Key term

Why group related controls onto a panel?

Key term

Where do events come from before they reach the queue?

Key term

What is meant by the source of an event?

Key term

How does a handler find out which control raised the event?

Key term

Give two examples of a trigger that does not come from the user.

Take Graphical User Interface Objects and Events further

The same content, four other ways.

Commonly confused

Pairs that lose marks when they are blurred together.

  • Read only text box vs Disabled text box

    Read only text box: a control that still lets the user highlight and copy what is shown. Disabled text box: a control that is greyed out and cannot even take the focus.

Questions from this topic

Each one with the model answer underneath.

  1. 1

    What is a graphical user interface?

    Model answer

    A graphical user interface is a screen of visual objects such as windows, buttons and text boxes that a user operates with a mouse, a touch screen or a keyboard.

  2. 2

    How does the flow of control in an event driven program differ from that of a console program?

    Model answer

    A console program runs its statements in a fixed order from start to finish, while an event driven program waits and runs a block of code only when the user acts.

  3. 3

    Name four visual objects a user expects to find on a typical desktop window.

    Model answer

    A typical desktop window offers buttons, text boxes, labels and menus.

  4. 4

    Why is a graphical interface described as user driven rather than program driven?

    Model answer

    A graphical interface is user driven because the user chooses which control to operate next, and the program fixes no order for those choices.

  5. 5

    Give two features of a graphical interface that make it easier for an inexperienced user than a command line.

    Model answer

    A graphical interface shows the available options on screen so nothing has to be memorised, and selection is made by pointing rather than by typing exact commands.

  6. 6

    State one advantage a command line interface keeps over a graphical interface.

    Model answer

    A command line interface can be scripted, so a long sequence of operations is repeated exactly without a user clicking through it.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A null is the of one.
absencepresencetype

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AA null means no value has been recorded.
BZero and an empty string are values.
CA null is the absence of a value.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Graphical User Interface Objects and Events revision questions

What does Graphical User Interface Objects and Events cover in CCEA A-Level Software Systems Development?
11 subtopics: graphical user interfaces and console programs, forms and their common properties, labels, text boxes and text areas, buttons, check boxes and radio buttons, lists, combo boxes and other selection controls, properties, methods and events of a gui object, containers, panels and laying out a form, the event loop and the event queue, event handlers and registering a listener, the event object and reading it inside a handler and button, mouse and keyboard triggers. Each one has its own page with questions and model answers.
How is Graphical User Interface Objects and Events organised?
By the CCEA CL4 specification, subtopic by subtopic, so it matches the order you are taught it in.

Every question in Graphical User Interface Objects and Events, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.