📄 feiguanbody.java
字号:
package 小区物业管理系统;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.borland.dbswing.TableScrollPane;
import java.awt.Rectangle;
import com.borland.dbswing.JdbTable;
import javax.swing.JButton;
import com.borland.dx.sql.dataset.Database;
import com.borland.dx.sql.dataset.QueryDataSet;
import com.borland.dbswing.DBDisposeMonitor;
import com.borland.dx.sql.dataset.ConnectionDescriptor;
import com.borland.dx.sql.dataset.Load;
import com.borland.dx.sql.dataset.QueryDescriptor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import com.borland.dbswing.JdbNavToolBar;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2008</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class feiguanbody extends JFrame {
JPanel contentPane;
TableScrollPane tableScrollPane1 = new TableScrollPane();
JdbTable jdbTable1 = new JdbTable();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
Database database1 = new Database();
QueryDataSet queryDataSet1 = new QueryDataSet();
DBDisposeMonitor dBDisposeMonitor1 = new DBDisposeMonitor();
JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();
JButton jButton3 = new JButton();
public feiguanbody() {
try {
setDefaultCloseOperation(EXIT_ON_CLOSE);
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
/**
* Component initialization.
*
* @throws java.lang.Exception
*/
private void jbInit() throws Exception {
contentPane = (JPanel) getContentPane();
contentPane.setLayout(null);
setSize(new Dimension(471, 613));
setTitle("欠费管理");
tableScrollPane1.setBounds(new Rectangle(40, 87, 398, 228));
jButton1.setBounds(new Rectangle(75, 455, 102, 23));
jButton1.setText("查询并缴费");
jButton1.addActionListener(new feiguanbody_jButton1_actionAdapter(this));
jButton2.setBounds(new Rectangle(197, 454, 104, 23));
jButton2.setText("录入欠费记录");
jButton2.addActionListener(new feiguanbody_jButton2_actionAdapter(this));
dBDisposeMonitor1.setDataAwareComponentContainer(this);
database1.setConnection(new ConnectionDescriptor(
"jdbc:borland:dslocal:C:\\物业管理\\小区物业管理系统\\数据库\\database.jds",
"admin", "admin", false,
"com.borland.datastore.jdbc.DataStoreDriver"));
queryDataSet1.setEnableInsert(false);
queryDataSet1.setEnableDelete(false);
queryDataSet1.setQuery(new QueryDescriptor(database1, "SELECT QIANFEI.FANGHAO,QIANFEI.YEZHU,QIANFEI.NIANFEN,QIANFEI.YUEFEN,QIANFEI.QIANSHUI,QIANFEI.QIANDIAN" +
",QIANFEI.QIANWU FROM DEFAULT_SCHEMA.QIANFEI", null, true,
Load.ALL));
jdbTable1.setDataSet(queryDataSet1);
jdbNavToolBar1.setBounds(new Rectangle(42, 14, 370, 41));
jButton3.setBounds(new Rectangle(331, 454, 85, 26));
jButton3.setText("返回");
jButton3.addActionListener(new feiguanbody_jButton3_actionAdapter(this));
contentPane.add(tableScrollPane1);
contentPane.add(jButton1);
contentPane.add(jdbNavToolBar1);
contentPane.add(jButton2);
contentPane.add(jButton3);
tableScrollPane1.getViewport().add(jdbTable1);
}
public void jButton1_actionPerformed(ActionEvent e) {
this.dispose();
new wuye();
}
public void jButton2_actionPerformed(ActionEvent e) {
this.dispose();
new jiafei();
}
public void jButton3_actionPerformed(ActionEvent e) {
this.dispose();
}
}
class feiguanbody_jButton3_actionAdapter implements ActionListener {
private feiguanbody adaptee;
feiguanbody_jButton3_actionAdapter(feiguanbody adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
}
}
class feiguanbody_jButton1_actionAdapter implements ActionListener {
private feiguanbody adaptee;
feiguanbody_jButton1_actionAdapter(feiguanbody adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
class feiguanbody_jButton2_actionAdapter implements ActionListener {
private feiguanbody adaptee;
feiguanbody_jButton2_actionAdapter(feiguanbody adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -