Page 890 - 3-2
P. 890
}
Sedong.contentPane.repaint();
}
stmt.close();
conn.close();
}catch(SQLException se1){
se1.printStackTrace();
}catch(Exception ex){
ex.printStackTrace();
}finally{
try{
if(stmt!=null)
stmt.close();
}catch(SQLException se2){
}
try{
if(conn!=null)
conn.close();
}catch(SQLException se){
se.printStackTrace();
}
}
}
}
};
timer.schedule(timeTask, 0,4000);
}
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Place frame = new Place();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
- 890 -