Time for action – implementing the game UI

We are ready to implement the UI part of the game. We will code everything in five methods: init (to initialize and wire up all the UI components), itemClick (to handle the clicks the user makes on the table), nextTurn (to update the UI on each turn), gameOver (to show the results when the game finishes), and getWords (that will return a collection with the correct words in the table). The steps for implementing the UI part of the game are as follows:

  1. First step as always is to create a new Vaadin project. We are using boxwords for the name of the project.
  2. Browse the book's source code and copy the Dictionary and Game classes and paste them beside your BoxwordsUI class. These classes implement the business ...

Get Vaadin 7 UI Design By Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.