Code:
public void actionPerformed(ActionEvent ae)
{
int flag=0;
s1=(from.getText());
s2=(to.getText());
if(ae.getSource()==view)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:prism");
stmt=con.createStatement();
Leave a comment: