Package DAL

Examples of DAL.Conexao


        add(jLabel1);
        jLabel1.setBounds(0, 0, 570, 520);
    }// </editor-fold>//GEN-END:initComponents

    private void botaoRankingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoRankingActionPerformed
        Conexao cx = new Conexao();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        cx.ranking();
        String[] nomeJogador = cx.getNomeJogadorRanking();
        String[] nomePartida = cx.getNomePartidaRanking();
        String[] ponto = cx.getPontosRanking();
               
        setBackground(new java.awt.Color(0, 0, 0));
        setLayout(null);
       
        jTable1.setFont(new java.awt.Font("Times New Roman", 0, 14)); // NOI18N
View Full Code Here


    private void botaoSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoSairActionPerformed
        System.exit(0);
    }//GEN-LAST:event_botaoSairActionPerformed

    private void botaoJogarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoJogarActionPerformed
        Conexao cx = new Conexao();
        boolean existe = cx.existePartidaAtiva(nomeJogador);
        int i;
        GerenciadorJogo gj = new GerenciadorJogo();
        if(existe == true){
            i = JOptionPane.showConfirmDialog(null, "Deseja continuar o jogo salvo?");
            if(i == 0){
                gj.executarSistema(5);
            }
            else{
                cx.desativaPartida(nomeJogador);
                gj.executarSistema(1);
            }
        }
        else{
            gj.executarSistema(1);
View Full Code Here

        _fase = fase;
        _escore = escore;
        _chancesJogo = chancesJogo;
        _listaMeteoros = listaMeteoros;
        _listaMisseis = new ArrayList();
        _cx = new Conexao();
        _cx.inserirPartidaBD(partida, jogador, escore, fase, 0, nivel_partida, 1);
        _nivelPartida = nivel_partida;
    }
View Full Code Here

TOP

Related Classes of DAL.Conexao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.