Lesson 9

Creating user interfaces in Java using Swing technology.

Objectives

Understanding Java Swing components:

  • Containers
  • Widgets
  • Layout Managers
  • Events Handling

Documentation

Exercises

Exercise 1

Test applications for section Interfete grafice

Exercise 2

Create an application which displays in a text field a counter which is incremented each time a button is pressed.

Exercise 3

Create an application which let a user enter a file name in a text field and then when a button is pressed to display the content of the file in a text area.

Exercise 4

Create an application which let to users to play X&0 game.