hai, I am doing a video shop prj,in that a search buttom is placed,in a tabbed pane named hindi,next in English,next in Tamil etc.When i clck the button search the data from the out gone cd/dvd has to shown on the same Hindi's tabbedpane or English Tabbedpane etc the table is created and values are taken but when i click the button it will no shown on the tabbedpane's panel.the code
/* * search.java * * Created on July 27, 2008, 3:27 PM */
package manasa; import java.awt.*; import java.io.*; import java.sql.*; import java.util.*; import javax.swing.*; import javax.swing.table.*; /** * * @author salish */ public class search extends javax.swing.JFrame { Connection con; Statement st; Boolean foundResults; Vector columnNames = new Vector(); Vector data = new Vector(); JTable table; JScrollPane scrollPane; /** Creates new form search */ public search() { initComponents();
try {
p pp=new p(); con=pp.getConnection();
} catch(Exception qe) { System.out.println(qe); }
}
/** 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. */ // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents private void initComponents() { jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jButton1Ea = new javax.swing.JButton(); jPanel5 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jPanel2 = new javax.swing.JPanel(); jButton2Ha = new javax.swing.JButton(); jScrollPane2Ha = new javax.swing.JScrollPane(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jButton3Ma = new javax.swing.JButton(); jScrollPane3Ma = new javax.swing.JScrollPane(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); jButton4Ta = new javax.swing.JButton(); jScrollPane4Ta = new javax.swing.JScrollPane(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel();