Structured User Story #22 - Button Drawings/Panels

USE CASE #22

The buttons are actually panels that the user interacts with using a series of mouselistener functions.

Preconditions

The gui is running and the user has a mouse to play the game with!

Success End Condition

The user can move the mouse over a particular label/panel and the label changes to a different image.
When they click on the panel/label area, the image changes yet again (and an action occurs as well, such as call/bet/fold/check/etc.).
When the focus is no longer on the panel/label, the label returns to the original image.

Fail End Condition

If the images do not exist, or the user does not have a mouse, then this cannot work!

Trigger

User moves mouse over and/or clicks on particular label/panel areas that act as butttons

Description A gui is running, and a user clicks on a button, hovers over a buttom, moves away from the buttons.
The buttons are actually represented by changing-labels within a panel that responds to various mouselistener functions!