1. Este site usa cookies. Ao continuar a usar este site está a concordar com o nosso uso de cookies. Saber Mais.

Introduzir dados do Netbeans no Access

Discussão em 'Programação' iniciada por xaleco, 16 de Junho de 2009. (Respostas: 0; Visualizações: 506)

  1. Bom dia.

    Estou a dessenvolver um pequeno projecto em java utilizando o Netbeans, que consiste em o utilizador comprar varias coisas e no fim tenho um jTabbedPane em que aparece o que o utilizador comprou e tem varios campos para ser preenchidos( nome, morada, e-mail, etc). O meu objectivo e que no fim de preencher esses campos o utilizador clique num botao e eses dados sejam gravados na base de dados.
    Ja fiz varias pesquisas mas ainda nao encontrei nenhum codigo para isto.

    Agradecia se me pudessem ajudar






    Deixo aqui o codigo.
    Código:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    /*
     * mat.java
     *
     * Created on 9/Jun/2009, 9:07:53
     */
    
    package forpkg;
    
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    
    /**
     *
     * @author mika
     */
    public class mat extends javax.swing.JFrame {
    
        /** Creates new form mat */
        public mat() {
            initComponents();
            jTabbedPane1.setEnabled(false);
        }
    
        /** 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() {
    
            jLabel39 = new javax.swing.JLabel();
            jPanel1 = new javax.swing.JPanel();
            jTabbedPane1 = new javax.swing.JTabbedPane();
            jPanel2 = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jPanel3 = new javax.swing.JPanel();
            jPanel11 = new javax.swing.JPanel();
            jButton3 = new javax.swing.JButton();
            jButton4 = new javax.swing.JButton();
            jButton5 = new javax.swing.JButton();
            jButton6 = new javax.swing.JButton();
            jButton7 = new javax.swing.JButton();
            jButton8 = new javax.swing.JButton();
            jLabel9 = new javax.swing.JLabel();
            jLabel11 = new javax.swing.JLabel();
            jLabel10 = new javax.swing.JLabel();
            jLabel12 = new javax.swing.JLabel();
            jLabel16 = new javax.swing.JLabel();
            jButton23 = new javax.swing.JButton();
            jLabel13 = new javax.swing.JLabel();
            jLabel14 = new javax.swing.JLabel();
            jLabel15 = new javax.swing.JLabel();
            jLabel17 = new javax.swing.JLabel();
            jLabel18 = new javax.swing.JLabel();
            jLabel19 = new javax.swing.JLabel();
            jLabel5 = new javax.swing.JLabel();
            jPanel6 = new javax.swing.JPanel();
            jButton14 = new javax.swing.JButton();
            jRadioButton1 = new javax.swing.JRadioButton();
            jLabel24 = new javax.swing.JLabel();
            jLabel25 = new javax.swing.JLabel();
            jLabel26 = new javax.swing.JLabel();
            jLabel27 = new javax.swing.JLabel();
            jLabel4 = new javax.swing.JLabel();
            jPanel4 = new javax.swing.JPanel();
            jLabel2 = new javax.swing.JLabel();
            jRadioButton2 = new javax.swing.JRadioButton();
            jButton15 = new javax.swing.JButton();
            jLabel28 = new javax.swing.JLabel();
            jLabel29 = new javax.swing.JLabel();
            jLabel31 = new javax.swing.JLabel();
            jLabel32 = new javax.swing.JLabel();
            jPanel5 = new javax.swing.JPanel();
            jLabel3 = new javax.swing.JLabel();
            jRadioButton3 = new javax.swing.JRadioButton();
            jButton17 = new javax.swing.JButton();
            jLabel33 = new javax.swing.JLabel();
            jLabel34 = new javax.swing.JLabel();
            jLabel35 = new javax.swing.JLabel();
            jLabel36 = new javax.swing.JLabel();
            jLabel37 = new javax.swing.JLabel();
            jPanel10 = new javax.swing.JPanel();
            jLabel8 = new javax.swing.JLabel();
            jRadioButton4 = new javax.swing.JRadioButton();
            jButton18 = new javax.swing.JButton();
            jLabel38 = new javax.swing.JLabel();
            jLabel40 = new javax.swing.JLabel();
            jLabel41 = new javax.swing.JLabel();
            jLabel42 = new javax.swing.JLabel();
            jLabel43 = new javax.swing.JLabel();
            jLabel44 = new javax.swing.JLabel();
            jLabel45 = new javax.swing.JLabel();
            jLabel46 = new javax.swing.JLabel();
            jLabel47 = new javax.swing.JLabel();
            jLabel48 = new javax.swing.JLabel();
            jLabel49 = new javax.swing.JLabel();
            jLabel50 = new javax.swing.JLabel();
            jLabel51 = new javax.swing.JLabel();
            jLabel52 = new javax.swing.JLabel();
            jLabel53 = new javax.swing.JLabel();
            jLabel54 = new javax.swing.JLabel();
            jPanel13 = new javax.swing.JPanel();
            jLabel66 = new javax.swing.JLabel();
            jLabel67 = new javax.swing.JLabel();
            jLabel68 = new javax.swing.JLabel();
            jLabel69 = new javax.swing.JLabel();
            jLabel70 = new javax.swing.JLabel();
            jLabel71 = new javax.swing.JLabel();
            jLabel77 = new javax.swing.JLabel();
            jLabel78 = new javax.swing.JLabel();
            jLabel79 = new javax.swing.JLabel();
            jLabel80 = new javax.swing.JLabel();
            jLabel81 = new javax.swing.JLabel();
            jLabel82 = new javax.swing.JLabel();
            jLabel83 = new javax.swing.JLabel();
            jLabel84 = new javax.swing.JLabel();
            jLabel85 = new javax.swing.JLabel();
            jRadioButton5 = new javax.swing.JRadioButton();
            jButton19 = new javax.swing.JButton();
            jPanel9 = new javax.swing.JPanel();
            jLabel7 = new javax.swing.JLabel();
            jRadioButton6 = new javax.swing.JRadioButton();
            jButton20 = new javax.swing.JButton();
            jLabel56 = new javax.swing.JLabel();
            jLabel72 = new javax.swing.JLabel();
            jLabel73 = new javax.swing.JLabel();
            jLabel74 = new javax.swing.JLabel();
            jLabel75 = new javax.swing.JLabel();
            jLabel76 = new javax.swing.JLabel();
            jLabel57 = new javax.swing.JLabel();
            jPanel7 = new javax.swing.JPanel();
            jButton16 = new javax.swing.JButton();
            jButton25 = new javax.swing.JButton();
            jButton10 = new javax.swing.JButton();
            jButton11 = new javax.swing.JButton();
            jButton13 = new javax.swing.JButton();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            jLabel6 = new javax.swing.JLabel();
            jLabel20 = new javax.swing.JLabel();
            jLabel30 = new javax.swing.JLabel();
            jButton9 = new javax.swing.JButton();
            jTextField1 = new javax.swing.JTextField();
            jLabel55 = new javax.swing.JLabel();
            jTextField2 = new javax.swing.JTextField();
            jLabel58 = new javax.swing.JLabel();
            jLabel59 = new javax.swing.JLabel();
            jLabel60 = new javax.swing.JLabel();
            jLabel61 = new javax.swing.JLabel();
            jTextField3 = new javax.swing.JTextField();
            jTextField4 = new javax.swing.JTextField();
            jTextField5 = new javax.swing.JTextField();
            jTextField6 = new javax.swing.JTextField();
            jPanel12 = new javax.swing.JPanel();
            jLabel21 = new javax.swing.JLabel();
            jLabel22 = new javax.swing.JLabel();
            jLabel23 = new javax.swing.JLabel();
            jButton24 = new javax.swing.JButton();
    
            jLabel39.setText("jLabel39");
    
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setBackground(new java.awt.Color(0, 0, 204));
    
            jPanel1.setBackground(new java.awt.Color(0, 0, 204));
    
            jTabbedPane1.setBackground(new java.awt.Color(255, 255, 255));
    
            jPanel2.setBackground(new java.awt.Color(255, 255, 255));
    
            jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/Informatica.jpg"))); // NOI18N
    
            jButton1.setBackground(new java.awt.Color(255, 255, 255));
            jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
                }
            });
    
            jButton2.setBackground(new java.awt.Color(255, 255, 255));
            jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_sair_comunidade.jpg"))); // NOI18N
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
                }
            });
    
            javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
            jPanel2.setLayout(jPanel2Layout);
            jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGap(25, 25, 25)
                            .addComponent(jLabel1))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGap(475, 475, 475)
                            .addComponent(jButton1)
                            .addGap(70, 70, 70)
                            .addComponent(jButton2)))
                    .addContainerGap(14, Short.MAX_VALUE))
            );
            jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jButton1)
                        .addComponent(jButton2))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
    
            jTabbedPane1.addTab("", jPanel2);
    
            jPanel3.setBackground(new java.awt.Color(255, 255, 255));
    
            jPanel11.setBackground(new java.awt.Color(0, 0, 204));
    
            jButton3.setText("Games");
            jButton3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton3ActionPerformed(evt);
                }
            });
    
            jButton4.setText("Teclados");
            jButton4.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton4ActionPerformed(evt);
                }
            });
    
            jButton5.setText("Leitor e Gravador de CD7DVD");
            jButton5.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton5ActionPerformed(evt);
                }
            });
    
            jButton6.setText("Portatil");
            jButton6.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton6ActionPerformed(evt);
                }
            });
    
            jButton7.setText("Disco");
            jButton7.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton7ActionPerformed(evt);
                }
            });
    
            jButton8.setText("Gps");
            jButton8.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton8ActionPerformed(evt);
                }
            });
    
            jLabel9.setFont(new java.awt.Font("augie", 0, 24));
            jLabel9.setText("Produtos");
    
            jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/bot_master.gif"))); // NOI18N
    
            jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/bot_visa.gif"))); // NOI18N
    
            jLabel16.setFont(new java.awt.Font("augie", 0, 24));
            jLabel16.setText("Formas de pagamento");
    
            jButton23.setText("As suas compras");
            jButton23.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton23ActionPerformed(evt);
                }
            });
    
            javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
            jPanel11.setLayout(jPanel11Layout);
            jPanel11Layout.setHorizontalGroup(
                jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel11Layout.createSequentialGroup()
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel11Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel11)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel10)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel12))
                        .addGroup(jPanel11Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel16))
                        .addGroup(jPanel11Layout.createSequentialGroup()
                            .addGap(35, 35, 35)
                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING, 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)
                                .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton23, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)
                                .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGroup(jPanel11Layout.createSequentialGroup()
                            .addGap(64, 64, 64)
                            .addComponent(jLabel9)))
                    .addContainerGap(21, Short.MAX_VALUE))
            );
            jPanel11Layout.setVerticalGroup(
                jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel9)
                    .addGap(22, 22, 22)
                    .addComponent(jButton7)
                    .addGap(18, 18, 18)
                    .addComponent(jButton3)
                    .addGap(18, 18, 18)
                    .addComponent(jButton8)
                    .addGap(18, 18, 18)
                    .addComponent(jButton5)
                    .addGap(18, 18, 18)
                    .addComponent(jButton4)
                    .addGap(18, 18, 18)
                    .addComponent(jButton6)
                    .addGap(14, 14, 14)
                    .addComponent(jButton23)
                    .addGap(11, 11, 11)
                    .addComponent(jLabel16)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel10)
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel11)
                            .addComponent(jLabel12)))
                    .addContainerGap())
            );
    
            jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/logo_APC.jpg"))); // NOI18N
    
            jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/logo_D-Link.jpg"))); // NOI18N
    
            jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/logo_clone.jpg"))); // NOI18N
    
            jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/logo_genius.jpg"))); // NOI18N
    
            jLabel18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/logo_intel.jpg"))); // NOI18N
    
            jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/logo_trust.jpg"))); // NOI18N
    
            jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/gifC.gif"))); // NOI18N
    
            javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
            jPanel3.setLayout(jPanel3Layout);
            jPanel3Layout.setHorizontalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 112, Short.MAX_VALUE)
                    .addComponent(jLabel5)
                    .addGap(150, 150, 150)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel15)
                        .addComponent(jLabel18)
                        .addComponent(jLabel14)
                        .addComponent(jLabel19)
                        .addComponent(jLabel17)
                        .addComponent(jLabel13))
                    .addContainerGap())
            );
            jPanel3Layout.setVerticalGroup(
                jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(97, 97, 97)
                    .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel5)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jLabel18)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel15)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel14)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel19)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel17)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel13))
            );
    
            jTabbedPane1.addTab("Home", jPanel3);
    
            jPanel6.setBackground(new java.awt.Color(255, 255, 255));
    
            jButton14.setBackground(new java.awt.Color(255, 255, 255));
            jButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton14.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton14ActionPerformed(evt);
                }
            });
    
            jRadioButton1.setBackground(new java.awt.Color(255, 255, 255));
            jRadioButton1.setFont(new java.awt.Font("augie", 1, 18));
            jRadioButton1.setText("Comprar");
    
            jLabel24.setFont(new java.awt.Font("Berlin Sans FB Demi", 1, 14));
            jLabel24.setText("DIGITAL rígido externo portátil WD Elements 250 G USB\t WESTERN DIGITAL rígido externo portátil WD Elements 250 G USB");
    
            jLabel25.setText("Características: - Fácil de usar - Ligar e pronto a receber os seus dados - ");
    
            jLabel26.setText("250 GB - Alimentado por USB - Estes discos não requerem adaptador de");
    
            jLabel27.setText("corrente já que se alimentam directamente...");
    
            jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/Externo 2.5.JPG"))); // NOI18N
    
            javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
            jPanel6.setLayout(jPanel6Layout);
            jPanel6Layout.setHorizontalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel6Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel6Layout.createSequentialGroup()
                            .addComponent(jLabel24)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                            .addComponent(jLabel4)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 171, Short.MAX_VALUE)
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                    .addComponent(jLabel25)
                                    .addGap(51, 51, 51))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                    .addComponent(jLabel27)
                                    .addGap(152, 152, 152))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                        .addComponent(jLabel26)
                                        .addGap(33, 33, 33))
                                    .addGroup(jPanel6Layout.createSequentialGroup()
                                        .addComponent(jButton14)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jRadioButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addContainerGap()))))))
            );
            jPanel6Layout.setVerticalGroup(
                jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel6Layout.createSequentialGroup()
                            .addGap(169, 169, 169)
                            .addComponent(jLabel25)
                            .addGap(30, 30, 30)
                            .addComponent(jLabel26)
                            .addGap(28, 28, 28)
                            .addComponent(jLabel27)
                            .addGap(37, 37, 37)
                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel6Layout.createSequentialGroup()
                                    .addGap(76, 76, 76)
                                    .addComponent(jButton14)
                                    .addGap(46, 46, 46))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                    .addGap(96, 96, 96)
                                    .addComponent(jRadioButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)
                                    .addGap(39, 39, 39))))
                        .addGroup(jPanel6Layout.createSequentialGroup()
                            .addGap(18, 18, 18)
                            .addComponent(jLabel4)
                            .addContainerGap())))
            );
    
            jTabbedPane1.addTab("Discos", jPanel6);
    
            jPanel4.setBackground(new java.awt.Color(255, 255, 255));
    
            jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/jogo1.jpg"))); // NOI18N
    
            jRadioButton2.setBackground(new java.awt.Color(255, 255, 255));
            jRadioButton2.setFont(new java.awt.Font("augie", 1, 18));
            jRadioButton2.setText("Comprar");
    
            jButton15.setBackground(new java.awt.Color(255, 255, 255));
            jButton15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton15.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton15ActionPerformed(evt);
                }
            });
    
            jLabel28.setText("Bioshock é um jogo de tiro em primeira pessoa com elementos");
    
            jLabel29.setText("de customização de um RPG, essa similaridade também se");
    
            jLabel31.setText("encontra em seu predecessor, System Shock 2. ");
    
            jLabel32.setFont(new java.awt.Font("Berlin Sans FB Demi", 1, 14));
            jLabel32.setText("Bioshock");
    
            javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
            jPanel4.setLayout(jPanel4Layout);
            jPanel4Layout.setHorizontalGroup(
                jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel2)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel4Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel28)
                            .addGap(213, 213, 213))
                        .addGroup(jPanel4Layout.createSequentialGroup()
                            .addGap(136, 136, 136)
                            .addComponent(jLabel32)
                            .addContainerGap())
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabel31)
                                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel29)
                                    .addGroup(jPanel4Layout.createSequentialGroup()
                                        .addComponent(jButton15)
                                        .addGap(18, 18, 18)
                                        .addComponent(jRadioButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGap(79, 79, 79))))
            );
            jPanel4Layout.setVerticalGroup(
                jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(jLabel2)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addGap(23, 23, 23)
                    .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(110, 110, 110)
                    .addComponent(jLabel28)
                    .addGap(29, 29, 29)
                    .addComponent(jLabel29)
                    .addGap(29, 29, 29)
                    .addComponent(jLabel31)
                    .addGap(150, 150, 150)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jRadioButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton15))
                    .addGap(23, 23, 23))
            );
    
            jTabbedPane1.addTab("Jogos", jPanel4);
    
            jPanel5.setBackground(new java.awt.Color(255, 255, 255));
    
            jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/kitt_gps_dd_2.jpg"))); // NOI18N
    
            jRadioButton3.setBackground(new java.awt.Color(255, 255, 255));
            jRadioButton3.setFont(new java.awt.Font("augie", 1, 18));
            jRadioButton3.setText("Comprar");
    
            jButton17.setBackground(new java.awt.Color(255, 255, 255));
            jButton17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton17.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton17ActionPerformed(evt);
                }
            });
    
            jLabel33.setFont(new java.awt.Font("Berlin Sans FB Demi", 1, 14));
            jLabel33.setText("Mio lança Knight Rider GPS com a voz do KITT");
    
            jLabel34.setText("Este novo modelo de GPS realmente vale muito a pena comprar,");
    
            jLabel35.setText("principalmente se você tem entre 30 e 35 anos,e assistiu aos ");
    
            jLabel36.setText("episódeos da série Super Máquina. O GPS é um modelo tradicional");
    
            jLabel37.setText("da empresa Mio, mas conta com um design muito bom");
    
            javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
            jPanel5.setLayout(jPanel5Layout);
            jPanel5Layout.setHorizontalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel5Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 461, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel37)
                        .addComponent(jLabel34)
                        .addComponent(jLabel35)
                        .addComponent(jLabel36)))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                    .addContainerGap(278, Short.MAX_VALUE)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addComponent(jLabel33)
                            .addGap(60, 60, 60))
                        .addGroup(jPanel5Layout.createSequentialGroup()
                            .addComponent(jButton17)
                            .addGap(18, 18, 18)))
                    .addComponent(jRadioButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(33, 33, 33))
            );
            jPanel5Layout.setVerticalGroup(
                jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel5Layout.createSequentialGroup()
                                    .addGap(78, 78, 78)
                                    .addComponent(jLabel34)
                                    .addGap(18, 18, 18)
                                    .addComponent(jLabel35)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jLabel36)
                                    .addGap(18, 18, 18)
                                    .addComponent(jLabel37))
                                .addGroup(jPanel5Layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel3)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 68, Short.MAX_VALUE)
                            .addComponent(jButton17))
                        .addComponent(jRadioButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap())
            );
    
            jTabbedPane1.addTab("GPS", jPanel5);
    
            jPanel10.setBackground(new java.awt.Color(255, 255, 255));
    
            jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/sata2.GIF"))); // NOI18N
    
            jRadioButton4.setBackground(new java.awt.Color(255, 255, 255));
            jRadioButton4.setFont(new java.awt.Font("augie", 1, 18));
            jRadioButton4.setText("Comprar");
    
            jButton18.setBackground(new java.awt.Color(255, 255, 255));
            jButton18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton18.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton18ActionPerformed(evt);
                }
            });
    
            jLabel38.setFont(new java.awt.Font("Berlin Sans FB Demi", 1, 14));
            jLabel38.setText("Leitor de CD-ROM Samsung SH-C522 de 52X");
    
            jLabel40.setFont(new java.awt.Font("Copperplate Gothic Light", 1, 12));
            jLabel40.setText("Descrição do produto:");
    
            jLabel41.setText("- Confiáveis e silenciosos os leitores  de CD-Rom ");
    
            jLabel42.setText("Samsung são super rápidos. As técnicas ABS e DVA ");
    
            jLabel43.setText("impedem falhas durante este processo e apresentam ótimos resultados.");
    
            jLabel44.setText("- Tecnologia DVA (Dynamic Vibration Absorber) que reduz o ruído e a vibração");
    
            jLabel45.setText("- Multi-leitura: Suporta todos os tipos de mídias e formatos");
    
            jLabel46.setFont(new java.awt.Font("Copperplate Gothic Light", 1, 12));
            jLabel46.setText("Características técnicas:");
    
            jLabel47.setText("- Cor do frontal: branco");
    
            jLabel48.setText("- Taxa de Transferência de Dados: 7,800 KB/seg (52x)");
    
            jLabel49.setText("- Razão de Transferência de Burst PIO Mode 4: (16.6 MB/seg)");
    
            jLabel50.setText("- Razão de Transferência de Burst DMA Mode 2: (16.6 MB/seg)");
    
            jLabel51.setText("- Supported Disc: CD-R/RW, CD-DA, CD-ROM, CD-ROM/XA, ");
    
            jLabel52.setText("Video-CD, CD-I, Photo CD, CD-EXTRA, CD-TEXT.");
    
            jLabel53.setText("- Dimensões: 42/148,2/184 mm (Alt/Larg/Prof)");
    
            jLabel54.setText("- Peso: 740 gramas");
    
            javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
            jPanel10.setLayout(jPanel10Layout);
            jPanel10Layout.setHorizontalGroup(
                jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel10Layout.createSequentialGroup()
                    .addGap(40, 40, 40)
                    .addComponent(jLabel8)
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel10Layout.createSequentialGroup()
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel10Layout.createSequentialGroup()
                                        .addGap(49, 49, 49)
                                        .addComponent(jLabel40))
                                    .addGroup(jPanel10Layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel43)))
                                .addContainerGap(78, Short.MAX_VALUE))
                            .addGroup(jPanel10Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel45)
                                    .addComponent(jLabel44)
                                    .addComponent(jLabel41)
                                    .addComponent(jLabel46)
                                    .addComponent(jLabel48)
                                    .addComponent(jLabel47)
                                    .addComponent(jLabel49)
                                    .addComponent(jLabel50)
                                    .addComponent(jLabel51)
                                    .addComponent(jLabel52)
                                    .addComponent(jLabel54)
                                    .addGroup(jPanel10Layout.createSequentialGroup()
                                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jButton18)
                                            .addComponent(jLabel53))
                                        .addGap(32, 32, 32)
                                        .addComponent(jRadioButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addGap(135, 135, 135)))
                        .addGroup(jPanel10Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel42)
                            .addContainerGap())))
                .addGroup(jPanel10Layout.createSequentialGroup()
                    .addGap(273, 273, 273)
                    .addComponent(jLabel38)
                    .addContainerGap(402, Short.MAX_VALUE))
            );
            jPanel10Layout.setVerticalGroup(
                jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel10Layout.createSequentialGroup()
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel10Layout.createSequentialGroup()
                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel10Layout.createSequentialGroup()
                                    .addContainerGap()
                                    .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(5, 5, 5)
                                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addGroup(jPanel10Layout.createSequentialGroup()
                                            .addGap(64, 64, 64)
                                            .addComponent(jLabel8))
                                        .addGroup(jPanel10Layout.createSequentialGroup()
                                            .addGap(53, 53, 53)
                                            .addComponent(jLabel40)
                                            .addGap(18, 18, 18)
                                            .addComponent(jLabel41)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLabel42)
                                            .addGap(11, 11, 11)
                                            .addComponent(jLabel43)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jLabel44)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel45))))
                                .addGroup(jPanel10Layout.createSequentialGroup()
                                    .addGap(245, 245, 245)
                                    .addComponent(jLabel46)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jLabel47)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel48)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel49)
                            .addGap(4, 4, 4)
                            .addComponent(jLabel50)
                            .addGap(4, 4, 4)
                            .addComponent(jLabel51)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel52, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel53, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel10Layout.createSequentialGroup()
                            .addGap(406, 406, 406)
                            .addComponent(jLabel54)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jRadioButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)
                        .addComponent(jButton18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
            );
    
            jTabbedPane1.addTab("Leitor de CD/DVD", jPanel10);
    
            jPanel13.setBackground(new java.awt.Color(255, 255, 255));
    
            jLabel66.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/TECLADO2_G.jpg"))); // NOI18N
    
            jLabel67.setFont(new java.awt.Font("Berlin Sans FB Demi", 1, 14));
            jLabel67.setText("Kit Teclado e Mouse Wireless (ACK2160UMRD)");
    
            jLabel68.setFont(new java.awt.Font("Copperplate Gothic Light", 1, 12));
            jLabel68.setText(" \t Especificações do Mouse");
    
            jLabel69.setText("Frequência de 27MHz RF (sem fio)");
    
            jLabel70.setText("Sensor ótico, livre de limpeza, aplicável na maioria das superfícies");
    
            jLabel71.setText("Conforto - o formato anatômico");
    
            jLabel77.setText("Possui teclas multimídia (volume, play, próxima faixa, funções page up e ");
    
            jLabel78.setText("down) Resolução de 800 dpi");
    
            jLabel79.setText("Frequência de 27MHz RF (sem fio)");
    
            jLabel80.setText("Formato elegante com linhas arrojadas");
    
            jLabel81.setFont(new java.awt.Font("Copperplate Gothic Light", 1, 12));
            jLabel81.setText("Especificações do Teclado");
    
            jLabel82.setText("21 teclas com funções rápidas (música e multimídia)");
    
            jLabel83.setText("Possui scroll embutido");
    
            jLabel84.setText("Apenas metade do peso dos teclados convencionais");
    
            jLabel85.setText("Teclas suaves para uma digitação mais confortável");
    
            jRadioButton5.setBackground(new java.awt.Color(255, 255, 255));
            jRadioButton5.setFont(new java.awt.Font("augie", 1, 18));
            jRadioButton5.setText("Comprar");
    
            jButton19.setBackground(new java.awt.Color(255, 255, 255));
            jButton19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton19.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton19ActionPerformed(evt);
                }
            });
    
            javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
            jPanel13.setLayout(jPanel13Layout);
            jPanel13Layout.setHorizontalGroup(
                jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel13Layout.createSequentialGroup()
                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel13Layout.createSequentialGroup()
                            .addGap(20, 20, 20)
                            .addComponent(jLabel66)
                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel13Layout.createSequentialGroup()
                                    .addGap(86, 86, 86)
                                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel69)
                                        .addComponent(jLabel85)
                                        .addComponent(jLabel84)
                                        .addComponent(jLabel83)
                                        .addComponent(jLabel82)
                                        .addComponent(jLabel81)
                                        .addComponent(jLabel80)
                                        .addComponent(jLabel79)
                                        .addComponent(jLabel78)
                                        .addComponent(jLabel77)
                                        .addComponent(jLabel71)
                                        .addComponent(jLabel70)
                                        .addComponent(jLabel68)))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)
                                    .addComponent(jButton19)
                                    .addGap(18, 18, 18)
                                    .addComponent(jRadioButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(43, 43, 43))))
                        .addGroup(jPanel13Layout.createSequentialGroup()
                            .addGap(272, 272, 272)
                            .addComponent(jLabel67)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
            jPanel13Layout.setVerticalGroup(
                jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
                    .addContainerGap(18, Short.MAX_VALUE)
                    .addComponent(jLabel67, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(28, 28, 28)
                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel13Layout.createSequentialGroup()
                            .addComponent(jLabel68)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel69)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel70)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel71)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel77)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel78)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel81)
                            .addGap(26, 26, 26)
                            .addComponent(jLabel79)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel80)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel82)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel83)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel84)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel85)
                            .addGap(18, 18, 18)
                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(jPanel13Layout.createSequentialGroup()
                                    .addGap(4, 4, 4)
                                    .addComponent(jRadioButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                        .addComponent(jLabel66))
                    .addContainerGap(34, Short.MAX_VALUE))
            );
    
            jTabbedPane1.addTab("Teclados", jPanel13);
    
            jPanel9.setBackground(new java.awt.Color(255, 255, 255));
    
            jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/toshiba_satellite_p300_01.jpg"))); // NOI18N
    
            jRadioButton6.setBackground(new java.awt.Color(255, 255, 255));
            jRadioButton6.setFont(new java.awt.Font("augie", 1, 18));
            jRadioButton6.setText("Comprar");
    
            jButton20.setBackground(new java.awt.Color(255, 255, 255));
            jButton20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton20.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton20ActionPerformed(evt);
                }
            });
    
            jLabel56.setFont(new java.awt.Font("Berlin Sans FB Demi", 1, 14));
            jLabel56.setText("Toshiba Satellite P300");
    
            jLabel72.setText("A Toshiba anunciou o Satellite P300, sucessor do - oh surpresa! - P200. ");
    
            jLabel73.setText("este novo computador “transportável” estreia um novo design nos portáteis");
    
            jLabel74.setText("da Toshiba e vem equipado com um ecrã LCD de 17″e resolução nativa ");
    
            jLabel75.setText("de 1440×900 pixeis sendo que o processador poderá ser um Intel ");
    
            jLabel76.setText("Core 2 Duo (do T5550 ao T8100) ou um AMD Athlon X2 TK-57.");
    
            jLabel57.setFont(new java.awt.Font("Copperplate Gothic Light", 1, 12));
            jLabel57.setText("Descrição do produto:");
    
            javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
            jPanel9.setLayout(jPanel9Layout);
            jPanel9Layout.setHorizontalGroup(
                jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel9Layout.createSequentialGroup()
                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 456, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel9Layout.createSequentialGroup()
                                        .addGap(18, 27, Short.MAX_VALUE)
                                        .addComponent(jButton20)
                                        .addGap(18, 18, 18)
                                        .addComponent(jRadioButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addContainerGap())
                                    .addGroup(jPanel9Layout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel72)
                                            .addComponent(jLabel73)
                                            .addComponent(jLabel74)
                                            .addComponent(jLabel75)
                                            .addComponent(jLabel76))
                                        .addContainerGap()))
                                .addGroup(jPanel9Layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel57)
                                    .addContainerGap())))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                            .addComponent(jLabel56)
                            .addGap(405, 405, 405))))
            );
            jPanel9Layout.setVerticalGroup(
                jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel9Layout.createSequentialGroup()
                    .addGap(87, 87, 87)
                    .addComponent(jLabel56, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel9Layout.createSequentialGroup()
                            .addGap(68, 68, 68)
                            .addComponent(jLabel57)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel72)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel73, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel74)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel75)
                            .addGap(18, 18, 18)
                            .addComponent(jLabel76)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 106, Short.MAX_VALUE)
                            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jRadioButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(22, 22, 22))
                        .addGroup(jPanel9Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel7)
                            .addContainerGap())))
            );
    
            jTabbedPane1.addTab("Portateis", jPanel9);
    
            jPanel7.setBackground(new java.awt.Color(255, 255, 255));
    
            jButton16.setBackground(new java.awt.Color(255, 255, 255));
            jButton16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/bot_diners.gif"))); // NOI18N
            jButton16.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton16ActionPerformed(evt);
                }
            });
    
            jButton25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/qq.jpg"))); // NOI18N
            jButton25.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton25ActionPerformed(evt);
                }
            });
    
            jButton10.setBackground(new java.awt.Color(255, 255, 255));
            jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/bot_master.gif"))); // NOI18N
            jButton10.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton10ActionPerformed(evt);
                }
            });
    
            jButton11.setBackground(new java.awt.Color(255, 255, 255));
            jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/bot_visa.gif"))); // NOI18N
            jButton11.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton11ActionPerformed(evt);
                }
            });
    
            jButton13.setBackground(new java.awt.Color(255, 255, 255));
            jButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_home.jpg"))); // NOI18N
            jButton13.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton13ActionPerformed(evt);
                }
            });
    
            jTextArea1.setColumns(20);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
    
            jLabel6.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
            jLabel6.setText("Clique no botao para ver as suas Compras");
    
            jLabel20.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
            jLabel20.setText("Registo do Comprador");
    
            jLabel30.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
            jLabel30.setText("Nome:");
    
            jButton9.setText("Guardar ");
            jButton9.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton9ActionPerformed(evt);
                }
            });
    
            jTextField1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jTextField1ActionPerformed(evt);
                }
            });
    
            jLabel55.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
            jLabel55.setText("Nº Contribuinte:");
    
            jLabel58.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
            jLabel58.setText("E-mail:");
    
            jLabel59.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
            jLabel59.setText("Morada:");
    
            jLabel60.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
            jLabel60.setText("Codigo Postal:");
    
            jLabel61.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
            jLabel61.setText("Localidade:");
    
            jTextField5.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jTextField5ActionPerformed(evt);
                }
            });
    
            javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
            jPanel7.setLayout(jPanel7Layout);
            jPanel7Layout.setHorizontalGroup(
                jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel7Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 343, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel7Layout.createSequentialGroup()
                                .addGap(17, 17, 17)
                                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jLabel60, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 364, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jLabel30)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 316, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jLabel58)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 417, Short.MAX_VALUE))
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jLabel59)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 414, Short.MAX_VALUE))
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jLabel55)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE))
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jLabel61, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 385, Short.MAX_VALUE))
                                    .addGroup(jPanel7Layout.createSequentialGroup()
                                        .addComponent(jButton9)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))))
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel7Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71, Short.MAX_VALUE)
                            .addComponent(jLabel6))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel7Layout.createSequentialGroup()
                            .addGap(78, 78, 78)
                            .addComponent(jButton16)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jButton10)
                            .addGap(10, 10, 10)
                            .addComponent(jButton11))
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton25, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            );
            jPanel7Layout.setVerticalGroup(
                jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel7Layout.createSequentialGroup()
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addGap(31, 31, 31)
                            .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel7Layout.createSequentialGroup()
                            .addGap(44, 44, 44)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel30)
                                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(33, 33, 33)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel55)
                                .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(33, 33, 33)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel58)
                                .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(28, 28, 28)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel59)
                                .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(24, 24, 24)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel60)
                                .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(31, 31, 31)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel61, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addComponent(jButton9)
                            .addGap(18, 18, 18)
                            .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap())
                        .addGroup(jPanel7Layout.createSequentialGroup()
                            .addGap(100, 100, 100)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jButton10)
                                .addComponent(jButton11)
                                .addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(33, 33, 33))))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                    .addContainerGap(52, Short.MAX_VALUE)
                    .addComponent(jButton25)
                    .addGap(422, 422, 422))
            );
    
            jTabbedPane1.addTab("Registo", jPanel7);
    
            jPanel12.setBackground(new java.awt.Color(255, 255, 255));
    
            jLabel21.setFont(new java.awt.Font("augie", 0, 24));
            jLabel21.setText("Obrigado pela visita disponha sempre");
    
            jLabel22.setFont(new java.awt.Font("augie", 0, 24));
            jLabel22.setText("O seu pedido foi efectuado com sucesso");
    
            jLabel23.setFont(new java.awt.Font("augie", 0, 24));
            jLabel23.setText("recebera o seu pedido num prazo de 5 dias.");
    
            jButton24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/forpkg/botao_sair_comunidade.jpg"))); // NOI18N
            jButton24.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton24ActionPerformed(evt);
                }
            });
    
            javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
            jPanel12.setLayout(jPanel12Layout);
            jPanel12Layout.setHorizontalGroup(
                jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel12Layout.createSequentialGroup()
                            .addGap(138, 138, 138)
                            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel23)
                                .addComponent(jLabel22)))
                        .addGroup(jPanel12Layout.createSequentialGroup()
                            .addGap(159, 159, 159)
                            .addComponent(jLabel21))
                        .addGroup(jPanel12Layout.createSequentialGroup()
                            .addGap(377, 377, 377)
                            .addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(227, Short.MAX_VALUE))
            );
            jPanel12Layout.setVerticalGroup(
                jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addGap(99, 99, 99)
                    .addComponent(jLabel22)
                    .addGap(32, 32, 32)
                    .addComponent(jLabel23)
                    .addGap(35, 35, 35)
                    .addComponent(jLabel21)
                    .addGap(52, 52, 52)
                    .addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(136, Short.MAX_VALUE))
            );
    
            jTabbedPane1.addTab("", jPanel12);
    
            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 844, Short.MAX_VALUE)
                    .addContainerGap())
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 539, 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)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
            );
    
            pack();
        }// </editor-fold>
    
    private void jButton24ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    System.exit(0);        // TODO add your handling code here:
    }                                         
    
    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(1);     // TODO add your handling code here:
    }                                         
    
    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(9);     // TODO add your handling code here:
    }                                         
    
    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(9);        // TODO add your handling code here:
    }                                         
    
    private void jButton25ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    if (jRadioButton1.isSelected()){
    
               jTextArea1.setText("\n"+
                        "Disco Externo ..::Preço unitario,32,22€::.."+"\n");
    
    
    
            } else {
            if (jRadioButton2.isSelected()){
    
                jTextArea1.setText("\n"+
                        "Game bioshock ..::Preço unitario,30,12€::.."+"\n");
    
    
    
            } else {
            if (jRadioButton3.isSelected()){
    
                jTextArea1.setText("\n"+
                        "GPS ..::Preço unitario,54,08€::.."+"\n");
    
    
    
            } else {
            if (jRadioButton4.isSelected()){
    
                jTextArea1.setText("\n"+
                        "Leitor e Gravador de CD7DVD ..::Preço unitario,22,00€::.."+"\n");
    
    
    
            }else {
            if (jRadioButton5.isSelected()){
    
                jTextArea1.setText("\n"+
                        "Teclado ..::Preço unitario,11,99€::.."+"\n");
    
            
    
            } else {
            if (jRadioButton6.isSelected()){
    
                jTextArea1.setText("\n"+
                        "Compotador Portatil ..::Preço unitario,509€::.."+"\n");
    
    
            }
            }
            }
            }
            }
            }
                                    
    }                                         
    
    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(9);
    }                                         
    
    private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(1);        // TODO add your handling code here:
    }                                         
    
    private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(1);     // TODO add your handling code here:
    }                                         
    
    private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(1);
    }                                         
    
    private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(1);        // TODO add your handling code here:
    }                                         
    
    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(1);        // TODO add your handling code here:
    }                                         
    
    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(1);        // TODO add your handling code here:
    }                                         
    
    private void jButton23ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    jTabbedPane1.setSelectedIndex(8);        // TODO add your handling code here:
    }                                         
    
    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    jTabbedPane1.setSelectedIndex(4);        // TODO add your handling code here:
    }                                        
    
    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    jTabbedPane1.setSelectedIndex(2);
    }                                        
    
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    jTabbedPane1.setSelectedIndex(7);        // TODO add your handling code here:
    }                                        
    
    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    jTabbedPane1.setSelectedIndex(5);        // TODO add your handling code here:
    }                                        
    
    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    jTabbedPane1.setSelectedIndex(6);        // TODO add your handling code here:
    }                                        
    
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    jTabbedPane1.setSelectedIndex(3);        // TODO add your handling code here:
    }                                        
    
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    System.exit(0);        // TODO add your handling code here:
    }                                        
    
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
    jTabbedPane1.setSelectedIndex(1);     // TODO add your handling code here:
    }                                        
    
    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {
    try{
    File arquivo;
    JFileChooser arq= new JFileChooser();
    int Result=arq.showSaveDialog(this);
    if(Result==JFileChooser.APPROVE_OPTION){
    arquivo = arq.getSelectedFile(); //Classe para Arquivos
    FileWriter inArq = new FileWriter(arquivo.getPath());
    inArq.write(jTextArea1.getText()); // lê o arquivo
    inArq.write(jTextField1.getText());
    inArq.write(jTextField2.getText());
    inArq.write(jTextField3.getText());
    inArq.write(jTextField4.getText());
    inArq.write(jTextField5.getText());
    inArq.write(jTextField6.getText());
    inArq.close();
    }
    }catch(IOException ioe) {
    JOptionPane.showMessageDialog(this,"erro ao abriri o arquivo");
    }
    
    }
    
    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
    
        // TODO add your handling code here:
    }
    
    private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    }
    
        /** 
        * @param args the command line arguments
        */
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new mat().setVisible(true);
                }
            });
        }
    
     
    Última edição pelo moderador: 16 de Junho de 2009

Partilhar esta Página