日期:2014-05-20 浏览次数:20915 次
public void recordFrame(final Connection conn) {
this.setTitle("寝室财产管理系统1.0--收支记录");
this.setSize(WIDTH, HEIGHT);
this.setLocation(x, y);
this.setBackground(Color.YELLOW);
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
setVisible(false);
}
});
this.setVisible(true);
this.setResizable(false);
}
TableModel tModel = new AbstractTableModel() {
//加入此方法,否则JTABLE无法正确判值的类型
public Class getColumnClass(int column) {
return java.lang.String.class;
}
}