Package blackJack

Class BlackJack

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BlackJack extends JPanel
This custom component Represents a Black Jack game with an internal component connected to backend file in package: backend.blackjack
See Also:
  • Field Details

    • saldo

      public JLabel saldo
    • userData

      public String[] userData
  • Constructor Details

    • BlackJack

      public BlackJack()
      This constructor create a component with basic setting and delegate style to method init()
  • Method Details

    • setStatus

      public void setStatus(boolean A)
      This method set enable or disable buttons during playing
      Parameters:
      A - true to enable this component; otherwise false
    • remove

      public void remove()
      This method removes component on table after play
    • result

      public void result(int win)
      This method is used to calculate a result of match and refresh credit re a Pop-up message of a result
      Parameters:
      win - is parameter to specific value 0 == Pareggio, >0 == Vinto other == Perso