usersjiemian.java
来自「java+sql 图书管理系统」· Java 代码 · 共 393 行 · 第 1/2 页
JAVA
393 行
jLabel25.setFont(new java.awt.Font("Dialog", 1, 15));
jLabel25.setText("旧密码:");
jLabel25.setBounds(new Rectangle(269, 61, 62, 35));
//----------文本框-----------------------------------------------------------
jPasswordField1.setText("");
jPasswordField1.setBounds(new Rectangle(95, 64, 128, 30));
jPasswordField2.setText("");
jPasswordField2.setBounds(new Rectangle(96, 110, 128, 30));
jTextField4.setText("");
jTextField4.setBounds(new Rectangle(349, 15, 130, 30));
jTextField5.setText("");
jTextField5.setBounds(new Rectangle(349, 110, 130, 30));
jTextField6.setText("");
jTextField6.setBounds(new Rectangle(94, 18, 130, 30));
jTextField7.setText("");
jTextField7.setBounds(new Rectangle(95, 157, 130, 30));
jTextField9.setBounds(new Rectangle(348, 20, 130, 30));
jTextField11.setText("");
jTextField11.setBounds(new Rectangle(97, 106, 130, 30));
jTextField14.setBounds(new Rectangle(97, 21, 130, 30));
//-----------------按钮---------------------------------------------------------
jButton1.setBounds(new Rectangle(270, 240, 100, 35));
jButton1.setFont(new java.awt.Font("Dialog", 1, 15));
jButton1.setText("添加");
jButton1.addActionListener(new Jiantingqi(this));
jButton3.setBounds(new Rectangle(390, 240, 100, 35));
jButton3.setFont(new java.awt.Font("Dialog", 1, 15));
jButton3.setText("退出");
jButton3.addActionListener(new Jiantingqi(this));
jButton2.setBounds(new Rectangle(150, 240, 100, 35));
jButton2.setFont(new java.awt.Font("Dialog", 1, 15));
jButton2.setText("刷新");
jButton2.addActionListener(new Jiantingqi(this));
jButton4.setBounds(new Rectangle(270, 240, 100, 35));
jButton4.setFont(new java.awt.Font("Dialog", 1, 15));
jButton4.setText("删除");
jButton4.addActionListener(new Jiantingqi(this));
jButton5.setBounds(new Rectangle(390, 240, 100, 35));
jButton5.setFont(new java.awt.Font("Dialog", 1, 15));
jButton5.setText("退出");
jButton5.addActionListener(new Jiantingqi(this));
jButton6.setBounds(new Rectangle(270, 240, 100, 35));
jButton6.setFont(new java.awt.Font("Dialog", 1, 15));
jButton6.setText("修改");
jButton6.addActionListener(new Jiantingqi(this));
jButton8.setBounds(new Rectangle(150, 240, 100, 35));
jButton8.setFont(new java.awt.Font("Dialog", 1, 15));
jButton8.setText("查找");
jButton8.addActionListener(new Jiantingqi(this));
jButton7.setBounds(new Rectangle(390, 240, 100, 35));
jButton7.setFont(new java.awt.Font("Dialog", 1, 15));
jButton7.setText("退出");
jButton7.addActionListener(new Jiantingqi(this));
//------------单选框-----------------------------------------------------------------
jChoice1.addItem("男");
jChoice1.addItem("女");
jChoice1.setBounds(new Rectangle(347, 67, 129, 29));
jScrollPane1.setBorder(null);
jScrollPane1.setBounds(new Rectangle(36, 52, 442, 169));
jchoice3.addItem("男");
jchoice3.addItem("女");
jPanel1.setEnabled(true);
jPanel1.setForeground(Color.blue);
jPanel1.setDebugGraphicsOptions(0);
jPanel1.setDoubleBuffered(true);
jChoice2.setBounds(new Rectangle(349, 152, 129, 31));
jChoice2.addItem("超级管理员");
jChoice2.addItem("普通管理员");
jchoice4.addItem("超级管理员");
jchoice4.addItem("普通管理员");
this.getContentPane().add(jTabbedPane1);
// jPanel1.setBackground(new Color(166, 202, 241));
// jTabbedPane1.setBackground(new Color(166, 202, 241));
jTabbedPane1.setFont(new java.awt.Font("Dialog", Font.BOLD, 18));
// jTabbedPane1.setForeground(Color.blue);
// jPanel2.setBackground(new Color(166, 202, 241));
jPanel2.add(jButton1, null);
jPanel2.add(jButton3, null);
jPanel2.add(jLabel2);
jPanel2.add(jLabel6);
jPanel2.add(jLabel3);
jPanel2.add(jLabel4);
jPanel2.add(jLabel11, null);
jPanel2.add(jChoice2);
jPanel2.add(jTextField5, null);
jPanel2.add(jChoice1);
jPanel2.add(jTextField4, null);
jPanel2.add(jLabel12, null);
jPanel2.add(jLabel7);
jPanel2.add(jLabel5);
jPanel2.add(jPasswordField2, null);
jPanel2.add(jPasswordField1, null);
jPanel2.add(jTextField6, null);
jPanel2.add(jTextField7, null);
jPanel2.add(jLabel13);
/////////////////
jTabbedPane1.setTabPlacement(jTabbedPane1.LEFT);
jTabbedPane1.add(jPanel2, "添加");
jPanel3.add(jLabel20, null);
jPanel3.add(jButton8);
jPanel3.add(jButton6, null);
jPanel3.add(jButton7, null);
jPanel3.add(jTextField9);
jPanel3.add(jLabel9);
jPanel3.add(jLabel25, null);
jPanel3.add(jLabel17);
jPanel3.add(jLabel18);
jPanel3.add(jTextField14, null);
jPanel3.add(jchoice3);
jPanel3.add(jTextField11, null);
jPanel3.add(jchoice4);
jPanel3.add(jLabel14);
jPanel3.add(jLabel8);
jPanel3.add(jLabel22, null);
jPanel3.add(jLabel10);
jPanel3.add(jTextField2);
jPanel3.add(jLabel23, null);
jPanel3.add(jPasswordField4);
jPanel3.add(jPasswordField3);
jPanel3.add(jPasswordField5);
this.getContentPane().add(jLabel1, null);
jTabbedPane1.add(jPanel1, "设置");
jPanel1.add(jLabel24, null);
jPanel1.add(jButton2, null);
jPanel1.add(jButton4, null);
jPanel1.add(jButton5, null);
jPanel1.add(jScrollPane1, null);
jScrollPane1.getViewport().add(jTable, null);
jScrollPane1.getViewport().setBackground(Color.white);
jTabbedPane1.add(jPanel3, "查改");
jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
//this.jTabbedPane1.setSelectedIndex(2);
if (x >= myWidth || y >= myHeight) {
x = myWidth;
y = myHeight;
this.setSize(x, y);
this.setLocation(0, 0);
} else {
this.setSize(x, y);
this.setLocation((myWidth - this.getSize().width) / 2,
(myHeight - this.getSize().height) / 2);
}
this.getRootPane().requestFocus();
this.getRootPane().setDefaultButton(jButton1);
this.setResizable(false);
}
/**
* jLabel1setFont
*
* @param font Font
*/
private void jLabel1setFont(Font font) {
}
// public static void main(String[] args) {
// Usersjiemian j = new Usersjiemian();
//
// }
public void choice1_itemStateChanged(ItemEvent e) {
}
public static void main(String[] args) {
Usersjiemian usersjiemian = new Usersjiemian(null);
}
}
class jiemian_choice1_itemAdapter implements ItemListener {
private Usersjiemian adaptee;
jiemian_choice1_itemAdapter(Usersjiemian adaptee) {
this.adaptee = adaptee;
}
public void itemStateChanged(ItemEvent e) {
adaptee.choice1_itemStateChanged(e);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?