Crossword Add-on
Crossword component for Vaadin 14+ with multiplayer support
This is a crossword puzzle component for Vaadin 14+ that can take a JSON file in the format defined here and can support multiple collaborative players.
Sample code
package org.acme.crossword.views; import java.io.File; import com.fasterxml.jackson.databind.ObjectMapper; import org.vaadin.addons.crossword.Crossword; import org.vaadin.addons.crossword.Puzzle; import com.vaadin.flow.router.Route; @Route("") public class CrosswordView extends VerticalLayout { public CrosswordView() { Crossword crossword = new Crossword(UUID.randomUUID().toString()); File jsonFile = new File("puzzle.json"); Puzzle puzzle = new ObjectMapper() .readerFor(Puzzle.class) .readValue(jsonFile); crossword.setPuzzle(puzzle); add(crossword); } }
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
First release.
Includes:
- Basic crossword rendering
- Keyboard/mouse navigation
- Multiple highlighted words (for collaborative solving)
- Clue rendering
- Ability to set the current crossword via JSON file
- Methods for setting global settings (e.g. whether to show mistakes or skip filled-in cells)
- Released
- 2022-10-06
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 14+
- Browser
- N/A
Crossword Add-on - Vaadin Add-on Directory
Crossword component for Vaadin 14+ with multiplayer supportDemo Source
Crossword Add-on version 1.0.0
First release.
Includes:
- Basic crossword rendering
- Keyboard/mouse navigation
- Multiple highlighted words (for collaborative solving)
- Clue rendering
- Ability to set the current crossword via JSON file
- Methods for setting global settings (e.g. whether to show mistakes or skip filled-in cells)