⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kmpanel.java~1~

📁 简单的学生管理系统。。用JBUILER和SQL2000。
💻 JAVA~1~
字号:
package studentgl;import java.awt.*;import javax.swing.*;import com.borland.dbswing.*;import com.borland.dx.sql.dataset.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class kmPanel extends JPanel {  BorderLayout borderLayout1 = new BorderLayout();  JSplitPane jSplitPane1 = new JSplitPane();  JPanel jPanel1 = new JPanel();  JScrollPane jScrollPane1 = new JScrollPane();  JLabel jLabel1 = new JLabel();  JButton jButton1 = new JButton();  JButton jButton2 = new JButton();  TableScrollPane tableScrollPane1 = new TableScrollPane();  JdbTable jdbTable1 = new JdbTable();  Database database1 = new Database();  QueryDataSet queryDataSet1 = new QueryDataSet();  JComboBox jComboBox1 = new JComboBox();  public kmPanel() {    try {      jbInit();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  void jbInit() throws Exception {    this.setLayout(borderLayout1);    jSplitPane1.setOrientation(JSplitPane.VERTICAL_SPLIT);    jPanel1.setLayout(null);    jLabel1.setFont(new java.awt.Font("Serif", 0, 14));    jLabel1.setForeground(SystemColor.textHighlight);    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);    jLabel1.setText("选择课程:");    jLabel1.setBounds(new Rectangle(70, 9, 122, 23));    jButton1.setBounds(new Rectangle(83, 45, 73, 25));    jButton1.setFont(new java.awt.Font("Serif", 0, 12));    jButton1.setForeground(Color.red);    jButton1.setText("确定");    jButton2.setBounds(new Rectangle(249, 44, 73, 25));    jButton2.setFont(new java.awt.Font("Serif", 0, 12));    jButton2.setForeground(Color.orange);    jButton2.setText("重设");    database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:microsoft:sqlserver://Issac:1433;DatabaseName=studentgl", "sa", "123456", false, "com.microsoft.jdbc.sqlserver.SQLServerDriver"));    queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "", null, true, Load.ALL));    jComboBox1.setBounds(new Rectangle(183, 10, 112, 22));    this.add(jSplitPane1, BorderLayout.CENTER);    jSplitPane1.add(jPanel1, JSplitPane.TOP);    jPanel1.add(jLabel1, null);    jPanel1.add(jButton1, null);    jPanel1.add(jButton2, null);    jPanel1.add(jComboBox1, null);    jSplitPane1.add(jScrollPane1, JSplitPane.BOTTOM);    jScrollPane1.getViewport().add(tableScrollPane1, null);    tableScrollPane1.getViewport().add(jdbTable1, null);    jSplitPane1.setDividerLocation(80);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -