I am developing an application using netbeans but facing problems in writing SQL statements. Though I can open a SQL Editor and run many statements one by one. But one thing I am unsuccess to do is how to associated these SQL statements with the components. I have read the product documentation also, but not found the satisfactory solution. In its help ofcourse the topics related to managing components events and setting events to components is given but of no use. I work according to that also but it is just either associating the events or just managing them. I have connected to the database by means of netbeans itself. Hence, I don't know what connection object of connection class to be used to make use of prepared statements. Can we do it by means of netbeans or I have to write the entire code manually in a tradition way.