Page 874 - 3-2
P. 874

if(flag[i]==0)
                                                                            {
                                                                                    select.n=number;
                                                                                    select.set();
                                                                                    flag[i]=1;
                                                                                    number++;
                                                                            }
                                                                            else
                                                                            {
                                                                               place.n=Integer
                                                                                     .parseInt(buttons[i]
                                                                                     .getText());
                                                                                    place.Place(0,0);
                                                                            }
                                                                    }
                                                            }
                                                    }
                                });
                                contentPane.add(buttons[i]);
                            }


                            button1.addActionListener(new ActionListener() {
                                    public void actionPerformed(ActionEvent arg0) {
                                            sendAll("reset");
                                            //System.out.println("00");
                                            //Place.Place(1,2);
                                            f=1;


                                            number=1;
                                            jframe.setBounds(100, 100, 500, 200);
                                            for(int i = 1;i<=cnt;i++)
                                            {
                                                    flag[i]=0;
                                            }
                                             Connection conn = null;
                                                    Statement stmt = null;
                                                    try{
                                                            Class.forName(JDBC_DRIVER);
                                                            conn =
                                                                 DriverManager.getConnection
                                                                       (DB_URL,USERNAME,PASSWORD);
                                                            stmt = conn.createStatement();


                                                            String sql;
                                                            sql = "drop table project;";


                                                         - 874 -
   869   870   871   872   873   874   875   876   877   878   879