PlayingCards | Vaadin

All you need for creating a card game with Vaadin

PlayingCards contain Card, Deck, CardStack and CardPile widgets for creating card games using Vaadin:

  • Card represents a single playing card that can be front or back side up. To avoid cheating the card information is not sent to the browser if the back side is up.

  • Deck contains a collection of cards and the top card can be drawn.

  • CardStack contains 0..N cards that are ordered below each other so the value of all cards (that are not backside up) can be seen.

  • A CardPile represents a pile of cards on top of each other. Can also be empty. Nothing but the top card can every be shown.

Typically you want to place the cards inside an AbsoluteLayout so they can overlap each other. See the code fragments below for examples.

Includes one size cards (150x104). The cards are from the SVG-cards project by David Bellot.


Link to this version
BetaReleased 02 April 2017GNU General Public License v3.0 only
Framework Support
Vaadin 8.0+
Also supported:
Vaadin 6 (0.4.0)Vaadin 7 (0.8.1)
Browser Compatibility
Install with
Release notes - Version 1.0.0

Compatible with Vaadin 8