Black Jack - Tavolo.java
Cerca
 











Tavolo.java

Caricato da: Paoloricciuti
Scarica il programma completo

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. /*
  7.  * Tavolo.java
  8.  *
  9.  * Created on 11-mar-2010, 20.12.36
  10.  */
  11. package blackjack.graphics;
  12.  
  13. import blackjack.Shuffler;
  14. import blackjack.Card;
  15. import blackjack.Player;
  16. import blackjack.Sound;
  17. import java.awt.event.KeyAdapter;
  18. import java.awt.event.KeyEvent;
  19. import java.awt.event.KeyListener;
  20. import java.io.IOException;
  21. import java.util.ArrayList;
  22. import javax.sound.midi.InvalidMidiDataException;
  23. import javax.sound.midi.MidiUnavailableException;
  24. import javax.swing.ImageIcon;
  25. import javax.swing.JOptionPane;
  26.  
  27. /**
  28.  *
  29.  * @author paolo
  30.  */
  31. public class Tavolo extends javax.swing.JFrame {
  32.  
  33.     private final String estensione = ".png";
  34.     private Shuffler banco;
  35.     private int soldi;
  36.     private Player player;
  37.     private Sound musica;
  38.  
  39.     private void initComboBox() {
  40.         //InputStream path = getClass().getResourceAsStream("/blackjack/music/");
  41.         // BufferedReader buff = new BufferedReader(new InputStreamReader(path));
  42.         ArrayList<String> musiche = new ArrayList<String>();
  43.         /*try {
  44.         System.out.println(buff.ready() + " " + buff + " " + path);
  45.         while (buff.ready()) {
  46.         musiche.add(buff.readLine());
  47.         }
  48.         } catch (IOException ex) {
  49.         }*/
  50.         //musiche=dir.list();
  51.         musiche.add("AlexBritti-UnaSuUnMilione");
  52.         musiche.add("Beatles-Imagine");
  53.         musiche.add("Beatles-Yesterday");
  54.         musiche.add("DeAndre-BallataDell'amoreCieco");
  55.         musiche.add("DeAndre-DonRaffae");
  56.         musiche.add("DeAndre-FiumeSandCreek");
  57.         musiche.add("DeAndre-Geordie");
  58.         musiche.add("DeAndre-IlBombarolo");
  59.         musiche.add("DeAndre-LaCittaVecchia");
  60.         musiche.add("DeAndre-UnGiudice");
  61.         musiche.add("DeanMartin-That'sAmore");
  62.         musiche.add("LisaStansfield-WhatAWonderfulWorld");
  63.         musiche.add("MichaelBuble-ComeFlyWithMe");
  64.         musiche.add("MichaelBuble-Don'tGet");
  65.         musiche.add("MichaelBuble-SpidermanTheme");
  66.         musiche.add("P.DiCapri-Champagne");
  67.         musiche.add("Queen-WeAreTheChampions");
  68.         musiche.add("Queen-WeWillRockYou");
  69.         musiche.add("TheDoors-LightMyFire");
  70.         musiche.add("TheDoors-RidersOnStorm");
  71.         musiche.add("Tv-Animaniacs");
  72.         musiche.add("Tv-Flintstones");
  73.         musiche.add("Tv-HappyDays");
  74.         for (int i = 0; i < musiche.size(); i++) {
  75.             String item = musiche.get(i).replaceAll(".mid", "");
  76.             this.listComboBox.addItem(item);
  77.         }
  78.  
  79.     }
  80.  
  81.     private void startAudio() {
  82.         this.musica.stopAudio();
  83.         try {
  84.             this.musica.startAudio("/blackjack/music/" + this.listComboBox.getSelectedItem() + ".mid");
  85.         } catch (InvalidMidiDataException ex) {
  86.         } catch (IOException ex) {
  87.         } catch (MidiUnavailableException ex) {
  88.         }
  89.  
  90.     }
  91.  
  92.     private void stopAudio() {
  93.         this.musica.stopAudio();
  94.     }
  95.  
  96.     private class Tasti extends KeyAdapter implements KeyListener {
  97.  
  98.         @Override
  99.         public void keyPressed(KeyEvent e) {
  100.             if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
  101.                 close();
  102.             } else if (e.getKeyCode() == KeyEvent.VK_F1) {
  103.                 newGame();
  104.             } else if (e.getKeyCode() == KeyEvent.VK_M) {
  105.                 JOptionPane.showMessageDialog(rootPane, "Ringraziamento speciale a Mariangela, che mi ha dato l'idea del KeyListener!");
  106.             } else if (e.getKeyCode() == KeyEvent.VK_L) {
  107.                 JOptionPane.showMessageDialog(rootPane, "Ringraziamento speciale a Lorenzo, che mi ha ispirato col suo Black Jack!l");
  108.             } else if (e.getKeyCode() == KeyEvent.VK_O) {
  109.                 JOptionPane.showMessageDialog(rootPane, "Ringraziamento speciale al prof. Oliveto Rocco che mi ha supportato e soprattutto sopportato dandomi preziosi consigli!");
  110.             } else if (e.getKeyCode() == KeyEvent.VK_F) {
  111.                 JOptionPane.showMessageDialog(rootPane, "Ringraziamento speciale ai miei amici che mi hanno aiutato a testare questo gioco!");
  112.             }
  113.         }
  114.     }
  115.  
  116.     private class Trucchi extends KeyAdapter implements KeyListener {
  117.  
  118.         private String trucco = "";
  119.  
  120.         @Override
  121.         public void keyPressed(KeyEvent e) {
  122.             this.trucco = this.trucco + e.getKeyChar();
  123.             if (e.getKeyChar() == 'r') {
  124.                 this.checkTrucco();
  125.             }
  126.         }
  127.  
  128.         public void checkTrucco() {
  129.             char[] trick = this.trucco.toLowerCase().toCharArray();
  130.             String controlla = "";
  131.             if (trick.length >= 5) {
  132.                 for (int i = trick.length - 5; i < trick.length; i++) {
  133.                     controlla = controlla + trick[i];
  134.                 }
  135.                 if (controlla.equals("ungar")) {
  136.                     player.setMoney(player.getMoney() + 1000);
  137.                     howMuchMoneyLabel.setText(player.getMoney() + "");
  138.                     this.trucco = "";
  139.                 }
  140.             }
  141.         }
  142.     }
  143.  
  144.     /** Creates new form Tavolo */
  145.     public Tavolo(String title, boolean pMusica) {
  146.         initComponents();
  147.         this.setIconImage(new ImageIcon(getClass().getResource("/blackjack/graphics/images/icon.jpg")).getImage());
  148.         this.setFocusable(true);
  149.         addKeyListener(new Trucchi());
  150.         addKeyListener(new Tasti());
  151.         this.banco = new Shuffler();
  152.         this.setTitle(title);
  153.         this.insuranceButton.setVisible(false);
  154.         this.cardButton.setEnabled(false);
  155.         this.standButton.setEnabled(false);
  156.         char[] tit = title.toCharArray();
  157.         String nome = "";
  158.         for (int i = 12; i < title.length(); i++) {
  159.             nome = nome + tit[i];
  160.         }
  161.         this.playerLabel.setText(nome);
  162.         this.player = new Player();
  163.         this.moneyLabel.setText(this.player.getMoney() + "");
  164.         this.betButton.setEnabled(false);
  165.         this.panel2.setVisible(false);
  166.         this.initComboBox();
  167.         try {
  168.             this.musica = new Sound();
  169.         } catch (MidiUnavailableException ex) {
  170.         }
  171.         if (pMusica) {
  172.             this.startAudio();
  173.         } else {
  174.             this.playButton.setText("Play");
  175.         }
  176.     }
  177.  
  178.     private void close() {
  179.         System.exit(0);
  180.     }
  181.  
  182.     private void drawCard() {
  183.         Card[] carte = this.banco.getCards(0);
  184.         ImageIcon[] card = new ImageIcon[5];
  185.         for (int i = 0; i < carte.length; i++) {
  186.             card[i] = new ImageIcon(getClass().getResource("/blackjack/graphics/images/" + carte[i].getNumber() + carte[i].getSuit() + this.estensione));
  187.         }
  188.         this.card1.setIcon(card[0]);
  189.         this.card2.setIcon(card[1]);
  190.         this.card3.setIcon(card[2]);
  191.         this.card4.setIcon(card[3]);
  192.         this.card5.setIcon(card[4]);
  193.         carte = this.banco.getCards(1);
  194.         card = new ImageIcon[5];
  195.         for (int i = 0; i < carte.length; i++) {
  196.             card[i] = new ImageIcon(getClass().getResource("/blackjack/graphics/images/" + carte[i].getNumber() + carte[i].getSuit() + this.estensione));
  197.             if (carte[i].isCover()) {
  198.                 card[i] = new ImageIcon(getClass().getResource("/blackjack/graphics/images/back" + this.estensione));
  199.             }
  200.         }
  201.         this.card6.setIcon(card[0]);
  202.         this.card7.setIcon(card[1]);
  203.         this.card8.setIcon(card[2]);
  204.         this.card9.setIcon(card[3]);
  205.         this.card10.setIcon(card[4]);
  206.         if (this.banco.isInsurancePossible() && !this.banco.isInsurance()) {
  207.             JOptionPane.showMessageDialog(rootPane, "Puoi effettuare l'insurance, scommettendo la metà della puntata sul BlackJack del banco!");
  208.             this.insuranceButton.setVisible(true);
  209.         }
  210.         this.playerPoint.setText(this.banco.getPoint(0) + "");
  211.         this.bancoPoint.setText(this.banco.getPoint(1) + "");
  212.     }
  213.  
  214.     private void newGame() {
  215.         this.player = new Player();
  216.         this.reset();
  217.     }
  218.  
  219.     private void reset() {
  220.         this.twentyButton.setEnabled(true);
  221.         this.fiftyButton.setEnabled(true);
  222.         this.oneHundredButton.setEnabled(true);
  223.         this.twoHundredButton.setEnabled(true);
  224.         this.fiveHundredButton.setEnabled(true);
  225.         this.oneThousandButton.setEnabled(true);
  226.         this.insuranceButton.setVisible(false);
  227.         this.betButton.setEnabled(false);
  228.         this.howMuchBetLabel.setText("-");
  229.         this.card1.setIcon(null);
  230.         this.card2.setIcon(null);
  231.         this.card3.setIcon(null);
  232.         this.card4.setIcon(null);
  233.         this.card5.setIcon(null);
  234.         this.card6.setIcon(null);
  235.         this.card7.setIcon(null);
  236.         this.card8.setIcon(null);
  237.         this.card9.setIcon(null);
  238.         this.card10.setIcon(null);
  239.         this.bancoPoint.setText("0");
  240.         this.playerPoint.setText("0");
  241.         this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  242.         this.banco = new Shuffler();
  243.         this.banco.setBet(0);
  244.         this.panel2.setVisible(false);
  245.     }
  246.  
  247.     /** This method is called from within the constructor to
  248.      * initialize the form.
  249.      * WARNING: Do NOT modify this code. The content of this method is
  250.      * always regenerated by the Form Editor.
  251.      */
  252.     @SuppressWarnings("unchecked")
  253.     // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  254.     private void initComponents() {
  255.  
  256.         panel = new javax.swing.JPanel();
  257.         card1 = new javax.swing.JLabel();
  258.         card2 = new javax.swing.JLabel();
  259.         card3 = new javax.swing.JLabel();
  260.         card4 = new javax.swing.JLabel();
  261.         card5 = new javax.swing.JLabel();
  262.         card6 = new javax.swing.JLabel();
  263.         card7 = new javax.swing.JLabel();
  264.         card8 = new javax.swing.JLabel();
  265.         card9 = new javax.swing.JLabel();
  266.         card10 = new javax.swing.JLabel();
  267.         standButton = new javax.swing.JButton();
  268.         cardButton = new javax.swing.JButton();
  269.         insuranceButton = new javax.swing.JButton();
  270.         bancoLabel = new javax.swing.JLabel();
  271.         bancoPoint = new javax.swing.JLabel();
  272.         playerLabel = new javax.swing.JLabel();
  273.         playerPoint = new javax.swing.JLabel();
  274.         label = new javax.swing.JLabel();
  275.         moneyLabel = new javax.swing.JLabel();
  276.         howMuchMoneyLabel = new javax.swing.JLabel();
  277.         twentyButton = new javax.swing.JButton();
  278.         fiftyButton = new javax.swing.JButton();
  279.         oneHundredButton = new javax.swing.JButton();
  280.         twoHundredButton = new javax.swing.JButton();
  281.         fiveHundredButton = new javax.swing.JButton();
  282.         oneThousandButton = new javax.swing.JButton();
  283.         betLabel = new javax.swing.JLabel();
  284.         howMuchBetLabel = new javax.swing.JLabel();
  285.         betButton = new javax.swing.JButton();
  286.         panel2 = new javax.swing.JPanel();
  287.         responseLabel = new javax.swing.JLabel();
  288.         continueButton = new javax.swing.JButton();
  289.         instructionLabel = new javax.swing.JLabel();
  290.         listLabel = new javax.swing.JLabel();
  291.         listComboBox = new javax.swing.JComboBox();
  292.         playButton = new javax.swing.JButton();
  293.  
  294.         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  295.         setResizable(false);
  296.  
  297.         panel.setBackground(new java.awt.Color(108, 219, 116));
  298.  
  299.         card1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  300.  
  301.         card2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  302.  
  303.         card3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  304.  
  305.         card4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  306.  
  307.         card5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  308.  
  309.         card6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  310.  
  311.         card7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  312.  
  313.         card8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  314.  
  315.         card9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  316.  
  317.         card10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  318.  
  319.         standButton.setText("Stai!");
  320.         standButton.setFocusable(false);
  321.         standButton.addActionListener(new java.awt.event.ActionListener() {
  322.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  323.                 standButtonActionPerformed(evt);
  324.             }
  325.         });
  326.  
  327.         cardButton.setText("Carta!");
  328.         cardButton.setFocusable(false);
  329.         cardButton.addActionListener(new java.awt.event.ActionListener() {
  330.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  331.                 cardButtonActionPerformed(evt);
  332.             }
  333.         });
  334.  
  335.         insuranceButton.setText("Insurance!");
  336.         insuranceButton.setFocusable(false);
  337.         insuranceButton.addActionListener(new java.awt.event.ActionListener() {
  338.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  339.                 insuranceButtonActionPerformed(evt);
  340.             }
  341.         });
  342.  
  343.         bancoLabel.setText("Banco");
  344.  
  345.         bancoPoint.setText("0");
  346.  
  347.         playerLabel.setText("jLabel13");
  348.  
  349.         playerPoint.setText("0");
  350.  
  351.         label.setText("Punta:");
  352.  
  353.         moneyLabel.setText("Soldi:");
  354.  
  355.         howMuchMoneyLabel.setText("500");
  356.  
  357.         twentyButton.setText("20");
  358.         twentyButton.setFocusable(false);
  359.         twentyButton.addActionListener(new java.awt.event.ActionListener() {
  360.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  361.                 twentyButtonActionPerformed(evt);
  362.             }
  363.         });
  364.  
  365.         fiftyButton.setText("50");
  366.         fiftyButton.setFocusable(false);
  367.         fiftyButton.addActionListener(new java.awt.event.ActionListener() {
  368.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  369.                 fiftyButtonActionPerformed(evt);
  370.             }
  371.         });
  372.  
  373.         oneHundredButton.setText("100");
  374.         oneHundredButton.setFocusable(false);
  375.         oneHundredButton.addActionListener(new java.awt.event.ActionListener() {
  376.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  377.                 oneHundredButtonActionPerformed(evt);
  378.             }
  379.         });
  380.  
  381.         twoHundredButton.setText("200");
  382.         twoHundredButton.setFocusable(false);
  383.         twoHundredButton.addActionListener(new java.awt.event.ActionListener() {
  384.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  385.                 twoHundredButtonActionPerformed(evt);
  386.             }
  387.         });
  388.  
  389.         fiveHundredButton.setText("500");
  390.         fiveHundredButton.setFocusable(false);
  391.         fiveHundredButton.addActionListener(new java.awt.event.ActionListener() {
  392.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  393.                 fiveHundredButtonActionPerformed(evt);
  394.             }
  395.         });
  396.  
  397.         oneThousandButton.setText("1000");
  398.         oneThousandButton.setFocusable(false);
  399.         oneThousandButton.addActionListener(new java.awt.event.ActionListener() {
  400.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  401.                 oneThousandButtonActionPerformed(evt);
  402.             }
  403.         });
  404.  
  405.         betLabel.setText("Bet:");
  406.  
  407.         howMuchBetLabel.setText("-");
  408.  
  409.         betButton.setText("Punta!");
  410.         betButton.setFocusable(false);
  411.         betButton.addActionListener(new java.awt.event.ActionListener() {
  412.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  413.                 betButtonActionPerformed(evt);
  414.             }
  415.         });
  416.  
  417.         panel2.setBackground(new java.awt.Color(51, 94, 54));
  418.         panel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new java.awt.Color(51, 94, 54), java.awt.Color.black, new java.awt.Color(51, 94, 54), new java.awt.Color(31, 19, 19)));
  419.  
  420.         responseLabel.setFont(new java.awt.Font("DejaVu Sans", 1, 24)); // NOI18N
  421.         responseLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
  422.         responseLabel.setText("jLabel20");
  423.  
  424.         continueButton.setText("Continua a giocare!");
  425.         continueButton.setFocusable(false);
  426.         continueButton.addActionListener(new java.awt.event.ActionListener() {
  427.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  428.                 continueButtonActionPerformed(evt);
  429.             }
  430.         });
  431.  
  432.         instructionLabel.setText("Premere ESC per uscire, F1 per un nuovo gioco");
  433.  
  434.         javax.swing.GroupLayout panel2Layout = new javax.swing.GroupLayout(panel2);
  435.         panel2.setLayout(panel2Layout);
  436.         panel2Layout.setHorizontalGroup(
  437.             panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  438.             .addGroup(panel2Layout.createSequentialGroup()
  439.                 .addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  440.                     .addGroup(panel2Layout.createSequentialGroup()
  441.                         .addContainerGap()
  442.                         .addComponent(responseLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE))
  443.                     .addGroup(panel2Layout.createSequentialGroup()
  444.                         .addContainerGap()
  445.                         .addComponent(instructionLabel))
  446.                     .addGroup(panel2Layout.createSequentialGroup()
  447.                         .addGap(90, 90, 90)
  448.                         .addComponent(continueButton)))
  449.                 .addContainerGap())
  450.         );
  451.         panel2Layout.setVerticalGroup(
  452.             panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  453.             .addGroup(panel2Layout.createSequentialGroup()
  454.                 .addContainerGap()
  455.                 .addComponent(responseLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
  456.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  457.                 .addComponent(continueButton)
  458.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  459.                 .addComponent(instructionLabel))
  460.         );
  461.  
  462.         listLabel.setText("Elenco canzoni disponibili:");
  463.         listLabel.setFocusable(false);
  464.  
  465.         listComboBox.setFocusable(false);
  466.         listComboBox.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
  467.             public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
  468.             }
  469.             public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
  470.                 listComboBoxPopupMenuWillBecomeInvisible(evt);
  471.             }
  472.             public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
  473.             }
  474.         });
  475.  
  476.         playButton.setText("Stop");
  477.         playButton.setFocusable(false);
  478.         playButton.addActionListener(new java.awt.event.ActionListener() {
  479.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  480.                 playButtonActionPerformed(evt);
  481.             }
  482.         });
  483.  
  484.         javax.swing.GroupLayout panelLayout = new javax.swing.GroupLayout(panel);
  485.         panel.setLayout(panelLayout);
  486.         panelLayout.setHorizontalGroup(
  487.             panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  488.             .addGroup(panelLayout.createSequentialGroup()
  489.                 .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  490.                     .addGroup(panelLayout.createSequentialGroup()
  491.                         .addGap(50, 50, 50)
  492.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  493.                             .addGroup(panelLayout.createSequentialGroup()
  494.                                 .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  495.                                     .addGroup(panelLayout.createSequentialGroup()
  496.                                         .addComponent(label)
  497.                                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  498.                                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  499.                                             .addComponent(oneHundredButton)
  500.                                             .addComponent(twentyButton)
  501.                                             .addComponent(fiveHundredButton)))
  502.                                     .addGroup(panelLayout.createSequentialGroup()
  503.                                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  504.                                             .addComponent(moneyLabel)
  505.                                             .addComponent(betLabel))
  506.                                         .addGap(18, 18, 18)
  507.                                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  508.                                             .addComponent(howMuchBetLabel)
  509.                                             .addComponent(howMuchMoneyLabel))))
  510.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  511.                                 .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  512.                                     .addComponent(fiftyButton)
  513.                                     .addComponent(twoHundredButton)
  514.                                     .addComponent(oneThousandButton)))
  515.                             .addComponent(betButton)))
  516.                     .addGroup(panelLayout.createSequentialGroup()
  517.                         .addContainerGap()
  518.                         .addComponent(listLabel))
  519.                     .addGroup(panelLayout.createSequentialGroup()
  520.                         .addContainerGap()
  521.                         .addComponent(playButton))
  522.                     .addGroup(panelLayout.createSequentialGroup()
  523.                         .addContainerGap()
  524.                         .addComponent(listComboBox, 0, 193, Short.MAX_VALUE)))
  525.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  526.                 .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  527.                     .addGroup(panelLayout.createSequentialGroup()
  528.                         .addComponent(insuranceButton)
  529.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  530.                         .addComponent(cardButton)
  531.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  532.                         .addComponent(standButton, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
  533.                         .addGap(16, 16, 16))
  534.                     .addGroup(panelLayout.createSequentialGroup()
  535.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  536.                             .addComponent(playerLabel)
  537.                             .addComponent(playerPoint))
  538.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 128, Short.MAX_VALUE)
  539.                         .addComponent(card5, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  540.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  541.                         .addComponent(card4, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  542.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  543.                         .addComponent(card3, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  544.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  545.                         .addComponent(card2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  546.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  547.                         .addComponent(card1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
  548.                     .addGroup(panelLayout.createSequentialGroup()
  549.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  550.                             .addGroup(panelLayout.createSequentialGroup()
  551.                                 .addComponent(bancoLabel)
  552.                                 .addGap(61, 61, 61))
  553.                             .addGroup(panelLayout.createSequentialGroup()
  554.                                 .addComponent(bancoPoint, javax.swing.GroupLayout.DEFAULT_SIZE, 162, Short.MAX_VALUE)
  555.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
  556.                         .addComponent(card10, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  557.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  558.                         .addComponent(card9, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  559.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  560.                         .addComponent(card8, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  561.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  562.                         .addComponent(card7, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
  563.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  564.                         .addComponent(card6, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
  565.                 .addGap(168, 168, 168))
  566.             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelLayout.createSequentialGroup()
  567.                 .addContainerGap(386, Short.MAX_VALUE)
  568.                 .addComponent(panel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  569.                 .addGap(354, 354, 354))
  570.         );
  571.         panelLayout.setVerticalGroup(
  572.             panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  573.             .addGroup(panelLayout.createSequentialGroup()
  574.                 .addContainerGap()
  575.                 .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  576.                     .addGroup(panelLayout.createSequentialGroup()
  577.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  578.                             .addComponent(card6, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  579.                             .addComponent(card7, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  580.                             .addComponent(card8, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  581.                             .addComponent(card9, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  582.                             .addComponent(card10, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))
  583.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 109, Short.MAX_VALUE)
  584.                         .addComponent(panel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  585.                         .addGap(38, 38, 38)
  586.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  587.                             .addComponent(card1, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  588.                             .addComponent(card2, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  589.                             .addComponent(card3, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  590.                             .addComponent(card4, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
  591.                             .addComponent(card5, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))
  592.                         .addGap(28, 28, 28)
  593.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  594.                             .addComponent(insuranceButton)
  595.                             .addComponent(cardButton)
  596.                             .addComponent(standButton))
  597.                         .addContainerGap())
  598.                     .addGroup(panelLayout.createSequentialGroup()
  599.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  600.                             .addComponent(bancoLabel)
  601.                             .addComponent(listLabel))
  602.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  603.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  604.                             .addGroup(panelLayout.createSequentialGroup()
  605.                                 .addComponent(bancoPoint)
  606.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 436, Short.MAX_VALUE)
  607.                                 .addComponent(playerLabel))
  608.                             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelLayout.createSequentialGroup()
  609.                                 .addComponent(listComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  610.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  611.                                 .addComponent(playButton)
  612.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 387, Short.MAX_VALUE)
  613.                                 .addComponent(betButton)))
  614.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  615.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  616.                             .addComponent(playerPoint)
  617.                             .addComponent(betLabel)
  618.                             .addComponent(howMuchBetLabel))
  619.                         .addGap(31, 31, 31)
  620.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  621.                             .addComponent(moneyLabel)
  622.                             .addComponent(howMuchMoneyLabel))
  623.                         .addGap(18, 18, 18)
  624.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  625.                             .addComponent(label)
  626.                             .addComponent(twentyButton)
  627.                             .addComponent(fiftyButton))
  628.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  629.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  630.                             .addComponent(oneHundredButton)
  631.                             .addComponent(twoHundredButton))
  632.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  633.                         .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  634.                             .addComponent(fiveHundredButton)
  635.                             .addComponent(oneThousandButton))
  636.                         .addGap(9, 9, 9))))
  637.         );
  638.  
  639.         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  640.         getContentPane().setLayout(layout);
  641.         layout.setHorizontalGroup(
  642.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  643.             .addComponent(panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  644.         );
  645.         layout.setVerticalGroup(
  646.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  647.             .addComponent(panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  648.         );
  649.  
  650.         pack();
  651.     }// </editor-fold>//GEN-END:initComponents
  652.  
  653.     private void twentyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_twentyButtonActionPerformed
  654.         if (20 <= this.player.getMoney()) {
  655.             this.banco.setBet(this.banco.getBet() + 20);
  656.             this.player.setMoney(this.player.getMoney() - 20);
  657.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  658.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  659.             this.betButton.setEnabled(true);
  660.         } else {
  661.             this.banco.setBet(this.banco.getBet() + this.player.getMoney());
  662.             this.player.setMoney(0);
  663.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  664.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  665.             this.betButton.setEnabled(true);
  666.         }
  667.     }//GEN-LAST:event_twentyButtonActionPerformed
  668.  
  669.     private void fiftyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fiftyButtonActionPerformed
  670.         if (50 <= this.player.getMoney()) {
  671.             this.banco.setBet(this.banco.getBet() + 50);
  672.             this.player.setMoney(this.player.getMoney() - 50);
  673.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  674.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  675.             this.betButton.setEnabled(true);
  676.         } else {
  677.             this.banco.setBet(this.banco.getBet() + this.player.getMoney());
  678.             this.player.setMoney(0);
  679.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  680.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  681.             this.betButton.setEnabled(true);
  682.         }
  683.     }//GEN-LAST:event_fiftyButtonActionPerformed
  684.  
  685.     private void oneHundredButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_oneHundredButtonActionPerformed
  686.         if (100 <= this.player.getMoney()) {
  687.             this.banco.setBet(this.banco.getBet() + 100);
  688.             this.player.setMoney(this.player.getMoney() - 100);
  689.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  690.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  691.             this.betButton.setEnabled(true);
  692.         } else {
  693.             this.banco.setBet(this.banco.getBet() + this.player.getMoney());
  694.             this.player.setMoney(0);
  695.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  696.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  697.             this.betButton.setEnabled(true);
  698.         }
  699.     }//GEN-LAST:event_oneHundredButtonActionPerformed
  700.  
  701.     private void twoHundredButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_twoHundredButtonActionPerformed
  702.         if (200 <= this.player.getMoney()) {
  703.             this.banco.setBet(this.banco.getBet() + 200);
  704.             this.player.setMoney(this.player.getMoney() - 200);
  705.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  706.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  707.             this.betButton.setEnabled(true);
  708.         } else {
  709.             this.banco.setBet(this.banco.getBet() + this.player.getMoney());
  710.             this.player.setMoney(0);
  711.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  712.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  713.             this.betButton.setEnabled(true);
  714.         }
  715.     }//GEN-LAST:event_twoHundredButtonActionPerformed
  716.  
  717.     private void fiveHundredButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fiveHundredButtonActionPerformed
  718.         if (500 <= this.player.getMoney()) {
  719.             this.banco.setBet(this.banco.getBet() + 500);
  720.             this.player.setMoney(this.player.getMoney() - 500);
  721.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  722.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  723.             this.betButton.setEnabled(true);
  724.         } else {
  725.             this.banco.setBet(this.banco.getBet() + this.player.getMoney());
  726.             this.player.setMoney(0);
  727.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  728.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  729.             this.betButton.setEnabled(true);
  730.         }
  731.     }//GEN-LAST:event_fiveHundredButtonActionPerformed
  732.  
  733.     private void oneThousandButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_oneThousandButtonActionPerformed
  734.         if (1000 <= this.player.getMoney()) {
  735.             this.banco.setBet(this.banco.getBet() + 1000);
  736.             this.player.setMoney(this.player.getMoney() - 1000);
  737.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  738.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  739.             this.betButton.setEnabled(true);
  740.         } else {
  741.             this.banco.setBet(this.banco.getBet() + this.player.getMoney());
  742.             this.player.setMoney(0);
  743.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  744.             this.howMuchBetLabel.setText(this.banco.getBet() + "");
  745.             this.betButton.setEnabled(true);
  746.         }
  747.     }//GEN-LAST:event_oneThousandButtonActionPerformed
  748.  
  749.     private void betButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_betButtonActionPerformed
  750.         this.twentyButton.setEnabled(false);
  751.         this.fiftyButton.setEnabled(false);
  752.         this.oneHundredButton.setEnabled(false);
  753.         this.twoHundredButton.setEnabled(false);
  754.         this.fiveHundredButton.setEnabled(false);
  755.         this.oneThousandButton.setEnabled(false);
  756.         this.betButton.setEnabled(false);
  757.         this.standButton.setEnabled(true);
  758.         this.cardButton.setEnabled(true);
  759.         this.banco.start();
  760.         this.drawCard();
  761.         if (banco.isBlackJack(0)) {
  762.             this.standButtonActionPerformed(evt);
  763.         }
  764.     }//GEN-LAST:event_betButtonActionPerformed
  765.  
  766.     private void standButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_standButtonActionPerformed
  767.         this.banco.play();
  768.         this.standButton.setEnabled(false);
  769.         this.cardButton.setEnabled(false);
  770.         this.drawCard();
  771.         this.player.setMoney(this.player.getMoney() + this.banco.pay());
  772.         this.panel2.setVisible(true);
  773.         String testo = "";
  774.         if (this.banco.isWinner() || (this.banco.isBlackJack(0) && !this.banco.isBlackJack(1))) {
  775.             testo = "Hai vinto " + this.banco.pay() + "!!!";
  776.         } else {
  777.             testo = "Mi dispiace hai perso!";
  778.         }
  779.         this.responseLabel.setText(testo);
  780.     }//GEN-LAST:event_standButtonActionPerformed
  781.  
  782.     private void cardButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardButtonActionPerformed
  783.         this.banco.card(0);
  784.         this.drawCard();
  785.         if (this.banco.getPoint(0) > 21 || this.banco.getNumCarte(0) == 5) {
  786.             this.standButtonActionPerformed(evt);
  787.         }
  788.     }//GEN-LAST:event_cardButtonActionPerformed
  789.  
  790.     private void continueButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_continueButtonActionPerformed
  791.         this.reset();
  792.         this.panel2.setVisible(false);
  793.         if (this.player.getMoney() == 0) {
  794.             System.exit(0);
  795.         }
  796.     }//GEN-LAST:event_continueButtonActionPerformed
  797.  
  798.     private void insuranceButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insuranceButtonActionPerformed
  799.         if (!this.banco.isInsurance() && this.player.getMoney() > this.banco.getBet() / 2) {
  800.             this.player.setMoney(this.player.getMoney() - (this.banco.getBet() / 2));
  801.             this.howMuchMoneyLabel.setText(this.player.getMoney() + "");
  802.             this.banco.setIns(true);
  803.             if (this.banco.isBlackJack(1)) {
  804.                 this.banco.setInsurance(true);
  805.             }
  806.         }
  807.     }//GEN-LAST:event_insuranceButtonActionPerformed
  808.  
  809.     private void listComboBoxPopupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {//GEN-FIRST:event_listComboBoxPopupMenuWillBecomeInvisible
  810.         this.startAudio();
  811.         this.playButton.setText("Stop");
  812.     }//GEN-LAST:event_listComboBoxPopupMenuWillBecomeInvisible
  813.  
  814.     private void playButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_playButtonActionPerformed
  815.         if (this.playButton.getText().equals("Stop")) {
  816.             this.stopAudio();
  817.             this.playButton.setText("Play");
  818.         } else {
  819.             this.startAudio();
  820.             this.playButton.setText("Stop");
  821.         }
  822.     }//GEN-LAST:event_playButtonActionPerformed
  823.     // Variables declaration - do not modify//GEN-BEGIN:variables
  824.     private javax.swing.JLabel bancoLabel;
  825.     private javax.swing.JLabel bancoPoint;
  826.     private javax.swing.JButton betButton;
  827.     private javax.swing.JLabel betLabel;
  828.     private javax.swing.JLabel card1;
  829.     private javax.swing.JLabel card10;
  830.     private javax.swing.JLabel card2;
  831.     private javax.swing.JLabel card3;
  832.     private javax.swing.JLabel card4;
  833.     private javax.swing.JLabel card5;
  834.     private javax.swing.JLabel card6;
  835.     private javax.swing.JLabel card7;
  836.     private javax.swing.JLabel card8;
  837.     private javax.swing.JLabel card9;
  838.     private javax.swing.JButton cardButton;
  839.     private javax.swing.JButton continueButton;
  840.     private javax.swing.JButton fiftyButton;
  841.     private javax.swing.JButton fiveHundredButton;
  842.     private javax.swing.JLabel howMuchBetLabel;
  843.     private javax.swing.JLabel howMuchMoneyLabel;
  844.     private javax.swing.JLabel instructionLabel;
  845.     private javax.swing.JButton insuranceButton;
  846.     private javax.swing.JLabel label;
  847.     private javax.swing.JComboBox listComboBox;
  848.     private javax.swing.JLabel listLabel;
  849.     private javax.swing.JLabel moneyLabel;
  850.     private javax.swing.JButton oneHundredButton;
  851.     private javax.swing.JButton oneThousandButton;
  852.     private javax.swing.JPanel panel;
  853.     private javax.swing.JPanel panel2;
  854.     private javax.swing.JButton playButton;
  855.     private javax.swing.JLabel playerLabel;
  856.     private javax.swing.JLabel playerPoint;
  857.     private javax.swing.JLabel responseLabel;
  858.     private javax.swing.JButton standButton;
  859.     private javax.swing.JButton twentyButton;
  860.     private javax.swing.JButton twoHundredButton;
  861.     // End of variables declaration//GEN-END:variables
  862. }
 

Creative Commons License
Il layout di questo sito è concesso sotto licenza Creative Commons.
Per maggiori informazioni sulle licenze dei contenuti del sito, clicca.