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

📄 indexint.java~1~

📁 从CSDN 上花了60个点购买的考勤管理系统,代码写的很细,非常值得推荐
💻 JAVA~1~
字号:
package studentmessage;import java.awt.*;import javax.swing.*;import java.awt.event.*;import java.sql.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class IndexInt extends JFrame{  JPanel panel,panelup,paneldown,panelcenter;  JLabel lblCustID;  GridBagLayout g;  GridBagConstraints c;  JLabel CustID,CustName,Age,Sex,Addr,Tel,Mail;  JTextField txtCustID;  JTextField T1,T2,T3,T4,T5,T6;  JButton btnQuery,btnInsert,btnDelete,btnUpdate;  BorderLayout bl;  FlowLayout fl;  GridLayout gl;  public IndexInt()  {    super("客户信息录入");    panel = new JPanel();    panelup = new JPanel();    paneldown = new JPanel();    panelcenter = new JPanel();    lblCustID = new JLabel("输入客户ID");    txtCustID = new JTextField(10);    btnQuery = new JButton("查询");    btnInsert = new JButton("增加");    btnDelete = new JButton("删除");    btnUpdate = new JButton("修改");    CustID = new JLabel("客户ID");    CustName = new JLabel("姓名");    Age = new JLabel("年龄");    Sex = new JLabel("性别");    Addr = new JLabel("地址");    Tel = new JLabel("电话");    Mail = new JLabel("E-mail");    String[] btn1 = {"男","女"};    JComboBox combobtn1 = new JComboBox(btn1);    T1 = new JTextField(10);    T2 = new JTextField(10);    T3=new JTextField(10);    T4=new JTextField(10);    T5=new JTextField(10);    T6=new JTextField(10);    bl=new BorderLayout();    fl=new FlowLayout(FlowLayout.LEFT);    gl=new GridLayout(1,3);    g = new GridBagLayout();    c= new GridBagConstraints();    panelcenter.setLayout(g);    panel.setLayout(bl);    panelup.setLayout(fl);    paneldown.setLayout(gl);    panelup.add(lblCustID);    panelup.add(txtCustID);    panelup.add(btnQuery);    panel.add(panelup,BorderLayout.NORTH);    paneldown.add(btnInsert);    paneldown.add(btnDelete);    paneldown.add(btnUpdate);    panel.add(paneldown,BorderLayout.SOUTH);    panel.add(panelcenter,BorderLayout.WEST);    c.anchor=GridBagConstraints.WEST;    c.gridx=0;    c.gridy=5;    g.setConstraints(CustID,c);    panelcenter.add(CustID);    c.anchor=GridBagConstraints.WEST;    c.gridx=1;    c.gridy=5;    g.setConstraints(T1,c);    panelcenter.add(T1);    c.anchor=GridBagConstraints.WEST;    c.gridx=0;    c.gridy=6;    g.setConstraints(CustName,c);    panelcenter.add(CustName);    c.anchor = GridBagConstraints.WEST;    c.gridx =1;    c.gridy =6;    g.setConstraints(T2,c);    panelcenter.add(T2);    c.anchor = GridBagConstraints.WEST;    c.gridx =0;    c.gridy =7;    g.setConstraints(Sex,c);    panelcenter.add(Sex);    c.anchor = GridBagConstraints.WEST;    c.gridx =1;    c.gridy =7;    g.setConstraints(combobtn1,c);    panelcenter.add(combobtn1);    c.anchor = GridBagConstraints.WEST;    c.gridx =0;    c.gridy =8;    g.setConstraints(Age,c);    panelcenter.add(Age);    c.anchor = GridBagConstraints.WEST;    c.gridx =1;    c.gridy =8;    g.setConstraints(T3,c);    panelcenter.add(T3);    c.anchor = GridBagConstraints.WEST;    c.gridx =0;    c.gridy =9;    g.setConstraints(Addr,c);    panelcenter.add(Addr);    c.anchor = GridBagConstraints.WEST;    c.gridx =1;    c.gridy =9;    g.setConstraints(T4,c);    panelcenter.add(T4);    c.anchor = GridBagConstraints.WEST;    c.gridx =0;    c.gridy =10;    g.setConstraints(Tel,c);    panelcenter.add(Tel);    c.anchor = GridBagConstraints.WEST;    c.gridx =1;    c.gridy =10;    g.setConstraints(T5,c);    panelcenter.add(T5);    c.anchor = GridBagConstraints.WEST;    c.gridx =0;    c.gridy =11;    g.setConstraints(Mail,c);    panelcenter.add(Mail);    c.anchor = GridBagConstraints.WEST;    c.gridx =1;    c.gridy =11;    g.setConstraints(T6,c);    panelcenter.add(T6);    getContentPane().add(panel);  }  public static void main(String[]s)  {    new IndexInt();  }}

⌨️ 快捷键说明

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