📄 chabody.java
字号:
package 小区物业管理系统;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.*;
import com.borland.dbswing.JdbStatusLabel;
import com.borland.dbswing.TableScrollPane;
import java.awt.Rectangle;
import com.borland.dbswing.JdbTable;
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 java.awt.GridBagLayout;
import java.awt.*;
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 chabody extends JFrame {
JPanel contentPane;
BorderLayout borderLayout1 = new BorderLayout();
ImageIcon image1 = new ImageIcon(小区物业管理系统.chabody.class.getResource(
"openFile.png"));
ImageIcon image2 = new ImageIcon(小区物业管理系统.chabody.class.getResource(
"closeFile.png"));
ImageIcon image3 = new ImageIcon(小区物业管理系统.chabody.class.getResource(
"help.png"));
JdbStatusLabel jdbStatusLabel1 = new JdbStatusLabel();
JPanel jPanel1 = new JPanel();
TableScrollPane tableScrollPane1 = new TableScrollPane();
JdbTable jdbTable1 = new JdbTable();
JButton jButton1 = new JButton();
Database database1 = new Database();
QueryDataSet queryDataSet1 = new QueryDataSet();
DBDisposeMonitor dBDisposeMonitor1 = new DBDisposeMonitor();
GridBagLayout gridBagLayout1 = new GridBagLayout();
JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();
public chabody() {
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(borderLayout1);
setSize(new Dimension(400, 350));
setTitle("物业管理");
jdbStatusLabel1.setText("jdbStatusLabel1");
jPanel1.setLayout(gridBagLayout1);
jButton1.setText("退出");
jButton1.addActionListener(new chabody_jButton1_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.setQuery(new QueryDescriptor(database1,
"SELECT USERINFO.ID,USERINFO.\"密码\" FROM DEFAULT_SCHEMA.USERINFO", null, true,
Load.ALL));
jdbTable1.setDataSet(queryDataSet1);
contentPane.add(jdbStatusLabel1, java.awt.BorderLayout.SOUTH);
contentPane.add(jPanel1, java.awt.BorderLayout.CENTER);
jPanel1.add(tableScrollPane1,
new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0
, GridBagConstraints.CENTER,
GridBagConstraints.BOTH,
new Insets(0, 16, 0, 19), -105, -226));
tableScrollPane1.getViewport().add(jdbTable1);
jPanel1.add(jButton1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
, GridBagConstraints.CENTER, GridBagConstraints.NONE,
new Insets(54, 155, 30, 164), 24, 6));
contentPane.add(jdbNavToolBar1, java.awt.BorderLayout.NORTH);
}
public void jButton1_actionPerformed(ActionEvent e) {
this.dispose();
}
}
class chabody_jButton1_actionAdapter implements ActionListener {
private chabody adaptee;
chabody_jButton1_actionAdapter(chabody adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -