Botão no Jframe

5 respostas
G

Pessoal, gostaria de uma ajuda
Estou criando um teclado parecido com o teclado virtual do windows
no Jframe principal tem um visor ( textfield) e botões
cada um com a devida letra, quando o usuário clica no “A” escreve A no textfield
Agora estou com um outro problema, no shift
ao clicar no shift abre um novo Jframe contendo os botões ! @ # $ % ¨& * () <> :? }{
como posso fazer para escrever no Jframe do teclado ?

Muito Obrigado !

5 Respostas

E

Não abra um novo JFrame; isso fica muito complicado. Em vez disso, ao clicar no Shift, você tem de mudar os textos dos botões, e ao soltar o Shift, você tem de voltar aos textos antigos. A classe JButton tem um método setText que permite a você mudar o texto do botão.

G

Obrigado pelo dica, mas como eu faço ? ( estou aprendendo java agora… e isso não é dever de casa rs )

private void InserirLetra(String letra) {

temp = JVisor.getText();  // temp variavel para pegar a string atual do textfield

    temp = temp + letra; 
    JVisor.setText(temp);

// botão

private void jBXActionPerformed(java.awt.event.ActionEvent evt) {

// TODO add your handling code here:

InserirLetra(x);

}

como eu faço isso que voce me falou ?

Obrigado

E

Vou dar um exemplo simplificado, só para ficar fácil de entender.

package guj;

import java.awt.BorderLayout;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;

public class TesteTeclado extends JFrame {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JTextField txtTexto = null;
	private JPanel pnlTeclas = null;
	private JButton btnA = null;
	private JButton btnB = null;
	private JButton btnC = null;
	private JButton btnD = null;
	private JButton btnShift = null;

	/**
	 * This is the default constructor
	 */
	public TesteTeclado() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(331, 111);
		this.setContentPane(getJContentPane());
		this.setTitle("JFrame");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(getTxtTexto(), BorderLayout.NORTH);
			jContentPane.add(getPnlTeclas(), BorderLayout.EAST);
		}
		return jContentPane;
	}

	/**
	 * This method initializes txtTexto	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getTxtTexto() {
		if (txtTexto == null) {
			txtTexto = new JTextField();
		}
		return txtTexto;
	}

	/**
	 * This method initializes pnlTeclas	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getPnlTeclas() {
		if (pnlTeclas == null) {
			GridLayout gridLayout = new GridLayout();
			gridLayout.setRows(1);
			gridLayout.setHgap(5);
			gridLayout.setVgap(5);
			gridLayout.setColumns(5);
			pnlTeclas = new JPanel();
			pnlTeclas.setLayout(gridLayout);
			pnlTeclas.add(getBtnA(), null);
			pnlTeclas.add(getBtnB(), null);
			pnlTeclas.add(getBtnC(), null);
			pnlTeclas.add(getBtnD(), null);
			pnlTeclas.add(getBtnShift(), null);
		}
		return pnlTeclas;
	}

	/**
	 * This method initializes btnA	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBtnA() {
		if (btnA == null) {
			btnA = new JButton();
			btnA.setText("A");
			btnA.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					String texto = txtTexto.getText();
					texto += btnA.getText();
					txtTexto.setText(texto);
				}
			});
		}
		return btnA;
	}

	/**
	 * This method initializes btnB	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBtnB() {
		if (btnB == null) {
			btnB = new JButton();
			btnB.setText("B");
			btnB.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					String texto = txtTexto.getText();
					texto += btnB.getText();
					txtTexto.setText(texto);
				}
			});
		}
		return btnB;
	}

	/**
	 * This method initializes btnC	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBtnC() {
		if (btnC == null) {
			btnC = new JButton();
			btnC.setText("C");
			btnC.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					String texto = txtTexto.getText();
					texto += btnC.getText();
					txtTexto.setText(texto);
				}
			});
		}
		return btnC;
	}

	/**
	 * This method initializes btnD	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBtnD() {
		if (btnD == null) {
			btnD = new JButton();
			btnD.setText("D");
			btnD.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					String texto = txtTexto.getText();
					texto += btnD.getText();
					txtTexto.setText(texto);
				}
			});
		}
		return btnD;
	}

	/**
	 * This method initializes btnShift	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBtnShift() {
		if (btnShift == null) {
			btnShift = new JButton();
			btnShift.setText("Shift");
			btnShift.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					if (!shifted) {
						btnA.setText("1");
						btnB.setText("2");
						btnC.setText("3");
						btnD.setText("4");
					} else {
						btnA.setText("A");
						btnB.setText("B");
						btnC.setText("C");
						btnD.setText("D");
					}
					shifted = !shifted;
				}
			});
		}
		return btnShift;
	}

	private boolean shifted = false;
	
	public static void main (String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				TesteTeclado tt = new TesteTeclado();
				tt.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				tt.setVisible(true);
			}
		});
	}
}  //  @jve:decl-index=0:visual-constraint="10,10"


G

Mais uma vez obrigado !
Estou utilizando o NetBeans.....
fiquei em duvida de onde colocar ... ai esta o meu codigo completo

public class jTeclado extends javax.swing.JFrame {

    String temp;

    /** Creates new form jTeclado */
    public jTeclado() {
        initComponents();
    }

    private void InserirLetra(String letra) {
        // TODO add your handling code here:
        temp = JVisor.getText();

        temp = temp + letra;
        JVisor.setText(temp);
 }

    /** 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">                          
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jButton13 = new javax.swing.JButton();
        jButton14 = new javax.swing.JButton();
        jButton15 = new javax.swing.JButton();
        jButton16 = new javax.swing.JButton();
        jButton17 = new javax.swing.JButton();
        jButton21 = new javax.swing.JButton();
        jButton18 = new javax.swing.JButton();
        jBum = new javax.swing.JButton();
        jBdois = new javax.swing.JButton();
        jBtres = new javax.swing.JButton();
        jBcinco = new javax.swing.JButton();
        jBquatro = new javax.swing.JButton();
        jBseis = new javax.swing.JButton();
        jBsete = new javax.swing.JButton();
        jBoito = new javax.swing.JButton();
        jBnove = new javax.swing.JButton();
        jBzero = new javax.swing.JButton();
        jBtab = new javax.swing.JButton();
        jBQ = new javax.swing.JButton();
        jBW = new javax.swing.JButton();
        jBE = new javax.swing.JButton();
        jBR = new javax.swing.JButton();
        jBY = new javax.swing.JButton();
        jBU = new javax.swing.JButton();
        jBT = new javax.swing.JButton();
        jBI = new javax.swing.JButton();
        jBP = new javax.swing.JButton();
        jButton43 = new javax.swing.JButton();
        jButton44 = new javax.swing.JButton();
        jButton45 = new javax.swing.JButton();
        jBA = new javax.swing.JButton();
        jBS = new javax.swing.JButton();
        jBD = new javax.swing.JButton();
        jBF = new javax.swing.JButton();
        jBG = new javax.swing.JButton();
        jBH = new javax.swing.JButton();
        jBJ = new javax.swing.JButton();
        jBK = new javax.swing.JButton();
        jBL = new javax.swing.JButton();
        jButton55 = new javax.swing.JButton();
        jButton56 = new javax.swing.JButton();
        jButton57 = new javax.swing.JButton();
        jButton58 = new javax.swing.JButton();
        jButton59 = new javax.swing.JButton();
        jBZ = new javax.swing.JButton();
        jBX = new javax.swing.JButton();
        jBC = new javax.swing.JButton();
        jBV = new javax.swing.JButton();
        jButton65 = new javax.swing.JButton();
        jButton66 = new javax.swing.JButton();
        jButton67 = new javax.swing.JButton();
        jButton68 = new javax.swing.JButton();
        jButton69 = new javax.swing.JButton();
        jButton70 = new javax.swing.JButton();
        jButton71 = new javax.swing.JButton();
        jBO = new javax.swing.JButton();
        jButton39 = new javax.swing.JButton();
        jButton73 = new javax.swing.JButton();
        jButton74 = new javax.swing.JButton();
        jButton75 = new javax.swing.JButton();
        jButton76 = new javax.swing.JButton();
        jButton77 = new javax.swing.JButton();
        jButton78 = new javax.swing.JButton();
        jButton79 = new javax.swing.JButton();
        jButton80 = new javax.swing.JButton();
        jButton82 = new javax.swing.JButton();
        jButton83 = new javax.swing.JButton();
        jButton84 = new javax.swing.JButton();
        jBScrool = new javax.swing.JButton();
        jBbreak = new javax.swing.JButton();
        jButton20 = new javax.swing.JButton();
        jButton22 = new javax.swing.JButton();
        jButton29 = new javax.swing.JButton();
        jButton30 = new javax.swing.JButton();
        jButton31 = new javax.swing.JButton();
        jButton32 = new javax.swing.JButton();
        jButton33 = new javax.swing.JButton();
        jButton34 = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        JVisor = new javax.swing.JTextPane();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBackground(new java.awt.Color(153, 153, 255));

        jButton1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButton1.setText("ESC");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("F12");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setText("'");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton8.setText("F1");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jButton9.setText("F2");

        jButton10.setText("F3");

        jButton11.setText("F4");

        jButton12.setText("F5");

        jButton13.setText("F6");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jButton14.setText("F7");

        jButton15.setText("F8");

        jButton16.setText("F9");

        jButton17.setText("F10");

        jButton21.setText("F11");

        jButton18.setText("Prt");

        jBum.setText("1");
        jBum.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBumActionPerformed(evt);
            }
        });

        jBdois.setText("2");
        jBdois.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBdoisActionPerformed(evt);
            }
        });

        jBtres.setText("3");
        jBtres.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtresActionPerformed(evt);
            }
        });

        jBcinco.setText("5");
        jBcinco.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBcincoActionPerformed(evt);
            }
        });

        jBquatro.setText("4");
        jBquatro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBquatroActionPerformed(evt);
            }
        });

        jBseis.setText("6");
        jBseis.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBseisActionPerformed(evt);
            }
        });

        jBsete.setText("7");
        jBsete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBseteActionPerformed(evt);
            }
        });

        jBoito.setText("8");
        jBoito.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBoitoActionPerformed(evt);
            }
        });

        jBnove.setText("9");
        jBnove.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBnoveActionPerformed(evt);
            }
        });

        jBzero.setText("0");
        jBzero.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBzeroActionPerformed(evt);
            }
        });

        jBtab.setText("<-/->");
        jBtab.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtabActionPerformed(evt);
            }
        });

        jBQ.setText("Q");
        jBQ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBQActionPerformed(evt);
            }
        });

        jBW.setText("W");
        jBW.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBWActionPerformed(evt);
            }
        });

        jBE.setText("E");
        jBE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBEActionPerformed(evt);
            }
        });

        jBR.setText("R");
        jBR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRActionPerformed(evt);
            }
        });

        jBY.setText("Y");
        jBY.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBYActionPerformed(evt);
            }
        });

        jBU.setText("U");
        jBU.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBUActionPerformed(evt);
            }
        });

        jBT.setText("T");
        jBT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBTActionPerformed(evt);
            }
        });

        jBI.setText("I");
        jBI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBIActionPerformed(evt);
            }
        });

        jBP.setText("P");
        jBP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBPActionPerformed(evt);
            }
        });

        jButton43.setText("´");

        jButton44.setText("[");

        jButton45.setText("Fixa");

        jBA.setText("A");
        jBA.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAActionPerformed(evt);
            }
        });

        jBS.setText("S");
        jBS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBSActionPerformed(evt);
            }
        });

        jBD.setText("D");
        jBD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBDActionPerformed(evt);
            }
        });

        jBF.setText("F");
        jBF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBFActionPerformed(evt);
            }
        });

        jBG.setText("G");
        jBG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGActionPerformed(evt);
            }
        });

        jBH.setText("H");
        jBH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBHActionPerformed(evt);
            }
        });

        jBJ.setText("J");
        jBJ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBJActionPerformed(evt);
            }
        });

        jBK.setText("K");
        jBK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBKActionPerformed(evt);
            }
        });

        jBL.setText("L");
        jBL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBLActionPerformed(evt);
            }
        });

        jButton55.setText("Ç");
        jButton55.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton55ActionPerformed(evt);
            }
        });

        jButton56.setText("~");

        jButton57.setText("]");

        jButton58.setText("Shift");
        jButton58.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton58ActionPerformed(evt);
            }
        });

        jButton59.setText("|  \");
            jButton59.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton59ActionPerformed(evt);
                }
            });

            jBZ.setText("Z");
            jBZ.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jBZActionPerformed(evt);
                }
            });

            jBX.setText("X");
            jBX.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jBXActionPerformed(evt);
                }
            });

            jBC.setText("C");
            jBC.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jBCActionPerformed(evt);
                }
            });

            jBV.setText("V");
            jBV.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jBVActionPerformed(evt);
                }
            });

            jButton65.setText("B");
            jButton65.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton65ActionPerformed(evt);
                }
            });

            jButton66.setText("N");
            jButton66.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton66ActionPerformed(evt);
                }
            });

            jButton67.setText("M");
            jButton67.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton67ActionPerformed(evt);
                }
            });

            jButton68.setText(",");
            jButton68.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton68ActionPerformed(evt);
                }
            });

            jButton69.setText(".");
            jButton69.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton69ActionPerformed(evt);
                }
            });

            jButton70.setText(";");
            jButton70.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton70ActionPerformed(evt);
                }
            });

            jButton71.setText("ENTER");
            jButton71.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton71ActionPerformed(evt);
                }
            });

            jBO.setText("O");
            jBO.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jBOActionPerformed(evt);
                }
            });

            jButton39.setText("CTRL");

            jButton73.setText("FN");

            jButton74.setText("W");

            jButton75.setText("ALT");

            jButton76.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton76ActionPerformed(evt);
                }
            });

            jButton77.setText("ALT GR");

            jButton78.setText("/  ?");
            jButton78.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton78ActionPerformed(evt);
                }
            });

            jButton80.setText("Shitf");

            jButton82.setText("<");

            jButton83.setText("v");

            jButton84.setText(">");

            jBScrool.setText("Slk");

            jBbreak.setText("Brk");

            jButton20.setText("<------");

            jButton22.setText("Ins");

            jButton29.setText("Del");

            jButton30.setText("Hm");

            jButton31.setText("End");

            jButton32.setText("pup");

            jButton33.setText("pdn");

            jButton34.setText("^");

            javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
            jPanel2.setLayout(jPanel2Layout);
            jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(jButton45)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBA)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBS)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBD)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBF)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBG)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBH)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBJ)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBK)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBL)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton55)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton56)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton57))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jButton1)
                                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jBum, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jBdois, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jBtres, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton11)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton12))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                    .addComponent(jBquatro, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBcinco, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jButton13)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton14))
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jBseis, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(4, 4, 4)
                                    .addComponent(jBsete, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jButton15)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton16)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jBScrool)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBbreak))
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jBzero)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBoito, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jBnove, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jButton58)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton59)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBZ)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBX)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBC)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBV)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton65)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jButton66)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton67))
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jBtab)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBQ, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBW)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBR)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBT)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBY)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBU)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBI)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jButton68)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton69)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton70)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton80, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                                    .addComponent(jButton34, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jBO, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jBP)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jButton43)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addComponent(jButton44)
                                            .addGap(5, 5, 5)
                                            .addComponent(jButton71, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addComponent(jButton20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jButton22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jButton30))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jButton31)
                                                .addComponent(jButton29)))
                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addComponent(jButton32)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jButton33)))))
                            .addGap(44, 44, 44))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(jButton39)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton73)
                            .addGap(10, 10, 10)
                            .addComponent(jButton74)
                            .addGap(2, 2, 2)
                            .addComponent(jButton75)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton76, javax.swing.GroupLayout.PREFERRED_SIZE, 335, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jButton77)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jButton78)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jButton79, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jButton82, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton83)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton84)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );

            jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jBA, jBC, jBD, jBE, jBF, jBG, jBH, jBI, jBJ, jBK, jBL, jBP, jBR, jBS, jBT, jBU, jBV, jBW, jBX, jBY, jBZ, jButton55, jButton65, jButton66, jButton67});

            jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton22, jButton29, jButton30, jButton31, jButton32, jButton33});

            jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton1)
                        .addComponent(jButton8)
                        .addComponent(jButton9)
                        .addComponent(jButton10)
                        .addComponent(jButton11)
                        .addComponent(jButton12)
                        .addComponent(jButton13)
                        .addComponent(jButton14)
                        .addComponent(jButton15)
                        .addComponent(jButton16)
                        .addComponent(jButton17)
                        .addComponent(jButton21)
                        .addComponent(jButton2)
                        .addComponent(jButton18)
                        .addComponent(jBbreak)
                        .addComponent(jBScrool))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton3)
                        .addComponent(jBum)
                        .addComponent(jBdois)
                        .addComponent(jBtres)
                        .addComponent(jButton29)
                        .addComponent(jBquatro)
                        .addComponent(jBcinco)
                        .addComponent(jBsete)
                        .addComponent(jBoito)
                        .addComponent(jBseis)
                        .addComponent(jButton22)
                        .addComponent(jButton20)
                        .addComponent(jBnove)
                        .addComponent(jBzero))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jBtab)
                                .addComponent(jBQ)
                                .addComponent(jBW)
                                .addComponent(jBE)
                                .addComponent(jBR)
                                .addComponent(jBT)
                                .addComponent(jBY)
                                .addComponent(jBU)
                                .addComponent(jBI)
                                .addComponent(jBP)
                                .addComponent(jButton43)
                                .addComponent(jButton44)
                                .addComponent(jBO))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton45)
                                .addComponent(jBA)
                                .addComponent(jBS)
                                .addComponent(jBD)
                                .addComponent(jBF)
                                .addComponent(jBG)
                                .addComponent(jBH)
                                .addComponent(jBJ)
                                .addComponent(jBK)
                                .addComponent(jBL)
                                .addComponent(jButton55)
                                .addComponent(jButton56)
                                .addComponent(jButton57)))
                        .addComponent(jButton71, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 52, Short.MAX_VALUE)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton30)
                                .addComponent(jButton31))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton32)
                                .addComponent(jButton33))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton58)
                        .addComponent(jButton59)
                        .addComponent(jBZ)
                        .addComponent(jBX)
                        .addComponent(jBC)
                        .addComponent(jBV)
                        .addComponent(jButton65)
                        .addComponent(jButton66)
                        .addComponent(jButton67)
                        .addComponent(jButton68)
                        .addComponent(jButton69)
                        .addComponent(jButton70)
                        .addComponent(jButton80)
                        .addComponent(jButton34))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jButton79, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                        .addComponent(jButton76, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButton75, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
                            .addComponent(jButton74, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                            .addComponent(jButton73, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
                            .addComponent(jButton39, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jButton77, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton78, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton82, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                            .addComponent(jButton83, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                            .addComponent(jButton84, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)))
                    .addContainerGap())
            );

            jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButton39, jButton73, jButton74, jButton75, jButton76, jButton77, jButton78, jButton79, jButton82, jButton83, jButton84});

            jScrollPane1.setViewportView(JVisor);

            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGap(30, 30, 30)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            );

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(31, Short.MAX_VALUE))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );

            pack();
        }// </editor-fold>                        

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
}                                         

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        // TODO add your handling code here:
}                                        

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        // TODO add your handling code here:
}                                        

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        // TODO add your handling code here:
}                                        

    private void jBseisActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        InserirLetra("6");
    }                                      

    private void jBXActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("x");
    }                                   

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        // TODO add your handling code here:
    }                                        

    private void jBQActionPerformed(java.awt.event.ActionEvent evt) {                                    
        InserirLetra("q");


    }                                   

    private void jBWActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("w");
    }                                   

    private void jBEActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("e");
    }                                   

    private void jBRActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("r");
    }                                   

    private void jBTActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("t");
    }                                   

    private void jBYActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("y");
    }                                   

    private void jBUActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("u");
    }                                   

    private void jBIActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("i");
    }                                   

    private void jBOActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("o");
    }                                   

    private void jBPActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("p");
    }                                   

    private void jBAActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("a");
    }                                   

    private void jBSActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("s");
    }                                   

    private void jBDActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("d");
    }                                   

    private void jBFActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("f");
    }                                   

    private void jBGActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("g");
    }                                   

    private void jBHActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("h");
    }                                   

    private void jBJActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("j");
    }                                   

    private void jBKActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("k");
    }                                   

    private void jBLActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("l");
    }                                   

    private void jButton55ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra("ç");
    }                                         

    private void jBZActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("z");
    }                                   

    private void jBCActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("c");
    }                                   

    private void jBVActionPerformed(java.awt.event.ActionEvent evt) {                                    
        // TODO add your handling code here:
        InserirLetra("v");
    }                                   

    private void jButton65ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra("b");
    }                                         

    private void jButton66ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra("n");
    }                                         

    private void jButton67ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra("m");
    }                                         

    private void jButton68ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra(",");
    }                                         

    private void jButton69ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra(".");
    }                                         

    private void jButton70ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra(";");
    }                                         

    private void jButton71ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra("\n");
    }                                         

    private void jButton76ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra(" ");
    }                                         

    private void jBdoisActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        InserirLetra("2");
    }                                      

    private void jButton78ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra("/");
    }                                         

    private void jButton59ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:
        InserirLetra("\");
    }                                         

    private void jBumActionPerformed(java.awt.event.ActionEvent evt) {                                     
        // TODO add your handling code here:
        InserirLetra("1");
    }                                    

    private void jBtresActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        InserirLetra("3");
    }                                      

    private void jBquatroActionPerformed(java.awt.event.ActionEvent evt) {                                         
        // TODO add your handling code here:
        InserirLetra("4");
    }                                        

    private void jBcincoActionPerformed(java.awt.event.ActionEvent evt) {                                        
        // TODO add your handling code here:
        InserirLetra("5");
    }                                       

    private void jBseteActionPerformed(java.awt.event.ActionEvent evt) {                                       
       // TODO add your handling code here:
        InserirLetra("7");
    }                                      

    private void jBoitoActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        InserirLetra("8");
    }                                      

    private void jBnoveActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        InserirLetra("9");
    }                                      

    private void jBzeroActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        InserirLetra("0");
    }                                      

    private void jBtabActionPerformed(java.awt.event.ActionEvent evt) {                                      
        // TODO add your handling code here:
        InserirLetra("        ");
    }                                     

    private void jButton58ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        // TODO add your handling code here:

       Sinais myFrame = new Sinais();
myFrame.setVisible(true);
        

    }                                         


    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new jTeclado().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify                     
    private javax.swing.JTextPane JVisor;
    private javax.swing.JButton jBA;
    private javax.swing.JButton jBC;
    private javax.swing.JButton jBD;
    private javax.swing.JButton jBE;
    private javax.swing.JButton jBF;
    private javax.swing.JButton jBG;
    private javax.swing.JButton jBH;
    private javax.swing.JButton jBI;
    private javax.swing.JButton jBJ;
    private javax.swing.JButton jBK;
    private javax.swing.JButton jBL;
    private javax.swing.JButton jBO;
    private javax.swing.JButton jBP;
    private javax.swing.JButton jBQ;
    private javax.swing.JButton jBR;
    private javax.swing.JButton jBS;
    private javax.swing.JButton jBScrool;
    private javax.swing.JButton jBT;
    private javax.swing.JButton jBU;
    private javax.swing.JButton jBV;
    private javax.swing.JButton jBW;
    private javax.swing.JButton jBX;
    private javax.swing.JButton jBY;
    private javax.swing.JButton jBZ;
    private javax.swing.JButton jBbreak;
    private javax.swing.JButton jBcinco;
    private javax.swing.JButton jBdois;
    private javax.swing.JButton jBnove;
    private javax.swing.JButton jBoito;
    private javax.swing.JButton jBquatro;
    private javax.swing.JButton jBseis;
    private javax.swing.JButton jBsete;
    private javax.swing.JButton jBtab;
    private javax.swing.JButton jBtres;
    private javax.swing.JButton jBum;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton22;
    private javax.swing.JButton jButton29;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton30;
    private javax.swing.JButton jButton31;
    private javax.swing.JButton jButton32;
    private javax.swing.JButton jButton33;
    private javax.swing.JButton jButton34;
    private javax.swing.JButton jButton39;
    private javax.swing.JButton jButton43;
    private javax.swing.JButton jButton44;
    private javax.swing.JButton jButton45;
    private javax.swing.JButton jButton55;
    private javax.swing.JButton jButton56;
    private javax.swing.JButton jButton57;
    private javax.swing.JButton jButton58;
    private javax.swing.JButton jButton59;
    private javax.swing.JButton jButton65;
    private javax.swing.JButton jButton66;
    private javax.swing.JButton jButton67;
    private javax.swing.JButton jButton68;
    private javax.swing.JButton jButton69;
    private javax.swing.JButton jButton70;
    private javax.swing.JButton jButton71;
    private javax.swing.JButton jButton73;
    private javax.swing.JButton jButton74;
    private javax.swing.JButton jButton75;
    private javax.swing.JButton jButton76;
    private javax.swing.JButton jButton77;
    private javax.swing.JButton jButton78;
    private javax.swing.JButton jButton79;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton80;
    private javax.swing.JButton jButton82;
    private javax.swing.JButton jButton83;
    private javax.swing.JButton jButton84;
    private javax.swing.JButton jButton9;
    private javax.swing.JButton jBzero;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration                   

}
G

Alguem ?
Eu consegui rodar o codigo aqui, funcionou certinho o seu…
mas não sei como implementar isso no meu

Alguem por favor ??

Obrigado !

Criado 7 de junho de 2010
Ultima resposta 7 de jun. de 2010
Respostas 5
Participantes 2