/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Substituce.java
 *
 * Created on 10.4.2010, 16:22:29
 */

package cz.vutbr.feec.utko.fojtoval.krypto.windows.data;

import cz.vutbr.feec.utko.fojtoval.krypto.windows.NavrhViewEvents;
import javax.swing.JButton;
import javax.swing.JLabel;


/**
 * Slouzi pro lusteni Substituce, pripadne zadavani abecedy u sifrovani metodou jednoduchy posun - zadani abecedy.
 * Sestavuje novou abecedu. Pouze GUI - obsluha udalosti je v SubstituceZadaniAbecedyEvents.
 * 
 * @author fojtoval
 */
public class SubstituceZadaniAbecedy extends javax.swing.JFrame {

    String nAbcd="";
    public NavrhViewEvents navrhV;

    String pFina;
    Boolean bdofive;

    /** Creates new form Substituce */
    public SubstituceZadaniAbecedy (NavrhViewEvents navrhh, String pPFina, Boolean Bbdofive) {

      this.navrhV = navrhh;
      this.pFina = pPFina;
      this.bdofive = Bbdofive;
      
      initComponents();

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pismenoA = new javax.swing.JButton();
        pismenoB = new javax.swing.JButton();
        pismenoC = new javax.swing.JButton();
        pismenoD = new javax.swing.JButton();
        pismenoE = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        vymazat = new javax.swing.JButton();
        pismenoF = new javax.swing.JButton();
        pismenoG = new javax.swing.JButton();
        pismenoH = new javax.swing.JButton();
        pismenoI = new javax.swing.JButton();
        pismenoJ = new javax.swing.JButton();
        pismenoK = new javax.swing.JButton();
        pismenoL = new javax.swing.JButton();
        pismenoM = new javax.swing.JButton();
        pismenoN = new javax.swing.JButton();
        pismenoO = new javax.swing.JButton();
        pismenoP = new javax.swing.JButton();
        pismenoQ = new javax.swing.JButton();
        pismenoR = new javax.swing.JButton();
        pismenoS = new javax.swing.JButton();
        pismenoT = new javax.swing.JButton();
        pismenoU = new javax.swing.JButton();
        pismenoV = new javax.swing.JButton();
        pismenoW = new javax.swing.JButton();
        pismenoZ = new javax.swing.JButton();
        pismenoY = new javax.swing.JButton();
        pismenoX = new javax.swing.JButton();
        tlacitkoOK = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("Form"); // NOI18N
        setResizable(false);

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(cz.vutbr.feec.utko.fojtoval.krypto.NavrhApp.class).getContext().getResourceMap(SubstituceZadaniAbecedy.class);
        pismenoA.setText(resourceMap.getString("pismenoA.text")); // NOI18N
        pismenoA.setName("pismenoA"); // NOI18N

        pismenoB.setText(resourceMap.getString("pismenoB.text")); // NOI18N
        pismenoB.setName("pismenoB"); // NOI18N

        pismenoC.setText(resourceMap.getString("pismenoC.text")); // NOI18N
        pismenoC.setName("pismenoC"); // NOI18N

        pismenoD.setText(resourceMap.getString("pismenoD.text")); // NOI18N
        pismenoD.setName("pismenoD"); // NOI18N

        pismenoE.setText(resourceMap.getString("pismenoE.text")); // NOI18N
        pismenoE.setName("pismenoE"); // NOI18N

        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        vymazat.setText(resourceMap.getString("vymazat.text")); // NOI18N
        vymazat.setName("vymazat"); // NOI18N

        pismenoF.setText(resourceMap.getString("pismenoF.text")); // NOI18N
        pismenoF.setName("pismenoF"); // NOI18N

        pismenoG.setText(resourceMap.getString("pismenoG.text")); // NOI18N
        pismenoG.setName("pismenoG"); // NOI18N

        pismenoH.setText(resourceMap.getString("pismenoH.text")); // NOI18N
        pismenoH.setName("pismenoH"); // NOI18N

        pismenoI.setText(resourceMap.getString("pismenoI.text")); // NOI18N
        pismenoI.setName("pismenoI"); // NOI18N

        pismenoJ.setText(resourceMap.getString("pismenoJ.text")); // NOI18N
        pismenoJ.setName("pismenoJ"); // NOI18N

        pismenoK.setText(resourceMap.getString("pismenoK.text")); // NOI18N
        pismenoK.setName("pismenoK"); // NOI18N

        pismenoL.setText(resourceMap.getString("pismenoL.text")); // NOI18N
        pismenoL.setName("pismenoL"); // NOI18N

        pismenoM.setText(resourceMap.getString("pismenoM.text")); // NOI18N
        pismenoM.setName("pismenoM"); // NOI18N

        pismenoN.setText(resourceMap.getString("pismenoN.text")); // NOI18N
        pismenoN.setName("pismenoN"); // NOI18N

        pismenoO.setText(resourceMap.getString("pismenoO.text")); // NOI18N
        pismenoO.setName("pismenoO"); // NOI18N

        pismenoP.setText(resourceMap.getString("pismenoP.text")); // NOI18N
        pismenoP.setName("pismenoP"); // NOI18N

        pismenoQ.setText(resourceMap.getString("pismenoQ.text")); // NOI18N
        pismenoQ.setName("pismenoQ"); // NOI18N

        pismenoR.setText(resourceMap.getString("pismenoR.text")); // NOI18N
        pismenoR.setName("pismenoR"); // NOI18N

        pismenoS.setText(resourceMap.getString("pismenoS.text")); // NOI18N
        pismenoS.setName("pismenoS"); // NOI18N

        pismenoT.setText(resourceMap.getString("pismenoT.text")); // NOI18N
        pismenoT.setName("pismenoT"); // NOI18N

        pismenoU.setText(resourceMap.getString("pismenoU.text")); // NOI18N
        pismenoU.setName("pismenoU"); // NOI18N

        pismenoV.setText(resourceMap.getString("pismenoV.text")); // NOI18N
        pismenoV.setName("pismenoV"); // NOI18N

        pismenoW.setText(resourceMap.getString("pismenoW.text")); // NOI18N
        pismenoW.setName("pismenoW"); // NOI18N

        pismenoZ.setText(resourceMap.getString("pismenoZ.text")); // NOI18N
        pismenoZ.setName("pismenoZ"); // NOI18N

        pismenoY.setText(resourceMap.getString("pismenoY.text")); // NOI18N
        pismenoY.setName("pismenoY"); // NOI18N

        pismenoX.setText(resourceMap.getString("pismenoX.text")); // NOI18N
        pismenoX.setName("pismenoX"); // NOI18N

        tlacitkoOK.setText(resourceMap.getString("tlacitkoOK.text")); // NOI18N
        tlacitkoOK.setEnabled(false);
        tlacitkoOK.setName("tlacitkoOK"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 629, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(tlacitkoOK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(vymazat)))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(pismenoA)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoB))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(pismenoN)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoO)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pismenoC)
                            .addComponent(pismenoP))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(pismenoQ)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoR)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoS)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoT)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoU)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoV)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoW)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoX)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoY)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoZ))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(pismenoD)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoF)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoG)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoH)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoI)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoJ)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoK)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoL)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(pismenoM)))))
                .addGap(22, 22, 22))
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {pismenoA, pismenoB, pismenoC, pismenoD, pismenoE, pismenoF, pismenoG, pismenoH, pismenoI, pismenoJ, pismenoK, pismenoL, pismenoM, pismenoN, pismenoO, pismenoP, pismenoQ, pismenoR, pismenoS, pismenoT, pismenoU, pismenoV, pismenoW, pismenoX, pismenoY, pismenoZ});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(pismenoA, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pismenoB)
                    .addComponent(pismenoC)
                    .addComponent(pismenoD)
                    .addComponent(pismenoE)
                    .addComponent(pismenoF)
                    .addComponent(pismenoG)
                    .addComponent(pismenoH)
                    .addComponent(pismenoI)
                    .addComponent(pismenoJ)
                    .addComponent(pismenoK)
                    .addComponent(pismenoL)
                    .addComponent(pismenoM))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(pismenoN)
                    .addComponent(pismenoO)
                    .addComponent(pismenoP)
                    .addComponent(pismenoQ)
                    .addComponent(pismenoR)
                    .addComponent(pismenoS)
                    .addComponent(pismenoT)
                    .addComponent(pismenoU)
                    .addComponent(pismenoV)
                    .addComponent(pismenoW)
                    .addComponent(pismenoX)
                    .addComponent(pismenoY)
                    .addComponent(pismenoZ))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(tlacitkoOK)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(vymazat))
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {pismenoA, pismenoB, pismenoC, pismenoD, pismenoE, pismenoF, pismenoG, pismenoH, pismenoI, pismenoJ, pismenoK, pismenoL, pismenoM, pismenoN, pismenoO, pismenoP, pismenoQ, pismenoR, pismenoS, pismenoT, pismenoU, pismenoV, pismenoW, pismenoX, pismenoY, pismenoZ});

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-773)/2, (screenSize.height-190)/2, 773, 190);
    }// </editor-fold>//GEN-END:initComponents

    /**
    * 
    * @param evt
     */

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JButton pismenoA;
    private javax.swing.JButton pismenoB;
    private javax.swing.JButton pismenoC;
    private javax.swing.JButton pismenoD;
    private javax.swing.JButton pismenoE;
    private javax.swing.JButton pismenoF;
    private javax.swing.JButton pismenoG;
    private javax.swing.JButton pismenoH;
    private javax.swing.JButton pismenoI;
    private javax.swing.JButton pismenoJ;
    private javax.swing.JButton pismenoK;
    private javax.swing.JButton pismenoL;
    private javax.swing.JButton pismenoM;
    private javax.swing.JButton pismenoN;
    private javax.swing.JButton pismenoO;
    private javax.swing.JButton pismenoP;
    private javax.swing.JButton pismenoQ;
    private javax.swing.JButton pismenoR;
    private javax.swing.JButton pismenoS;
    private javax.swing.JButton pismenoT;
    private javax.swing.JButton pismenoU;
    private javax.swing.JButton pismenoV;
    private javax.swing.JButton pismenoW;
    private javax.swing.JButton pismenoX;
    private javax.swing.JButton pismenoY;
    private javax.swing.JButton pismenoZ;
    private javax.swing.JButton tlacitkoOK;
    private javax.swing.JButton vymazat;
    // End of variables declaration//GEN-END:variables

    public JButton getTlacitkoOK() {
        return tlacitkoOK;
    }

    public JButton getVymazat() {
        return vymazat;
    }

     public JLabel getjLabel1() {
        return jLabel1;
    }

    public JButton getPismenoA() {
        return pismenoA;
    }

    public JButton getPismenoB() {
        return pismenoB;
    }

    public JButton getPismenoC() {
        return pismenoC;
    }

    public JButton getPismenoD() {
        return pismenoD;
    }

    public JButton getPismenoE() {
        return pismenoE;
    }

    public JButton getPismenoF() {
        return pismenoF;
    }

    public JButton getPismenoG() {
        return pismenoG;
    }

    public JButton getPismenoH() {
        return pismenoH;
    }

    public JButton getPismenoI() {
        return pismenoI;
    }

    public JButton getPismenoJ() {
        return pismenoJ;
    }

    public JButton getPismenoK() {
        return pismenoK;
    }

    public JButton getPismenoL() {
        return pismenoL;
    }

    public JButton getPismenoM() {
        return pismenoM;
    }

    public JButton getPismenoN() {
        return pismenoN;
    }

    public JButton getPismenoO() {
        return pismenoO;
    }

    public JButton getPismenoP() {
        return pismenoP;
    }

    public JButton getPismenoQ() {
        return pismenoQ;
    }

    public JButton getPismenoR() {
        return pismenoR;
    }

    public JButton getPismenoS() {
        return pismenoS;
    }

    public JButton getPismenoT() {
        return pismenoT;
    }

    public JButton getPismenoU() {
        return pismenoU;
    }

    public JButton getPismenoV() {
        return pismenoV;
    }

    public JButton getPismenoW() {
        return pismenoW;
    }

    public JButton getPismenoX() {
        return pismenoX;
    }

    public JButton getPismenoY() {
        return pismenoY;
    }

    public JButton getPismenoZ() {
        return pismenoZ;
    }

}
