当前位置:首页 > 数据库课程设计教务管理系统
洛 阳 理 工 学 院 课 程 设 计 报 告
private JPanel contentPane; private JTextField txt_sno; private JTable table; private JTextField txtsname; private JTextField txtcno; private JTextField txtgrade; private JTextField txtsno; /**
* Launch the application. */
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { }); } /**
* Create the frame. */
public void run() { }
try {
Form_bookedit frame = new Form_bookedit(); frame.setVisible(true);
} catch (Exception e) { }
e.printStackTrace();
public Form_edit() { setEnabled(false); setClosable(true);
setTitle(\
11
洛 阳 理 工 学 院 课 程 设 计 报 告
//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 487, 412); contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); JLabel
lblNewLabel
=
new
JLabel(\
txt_sno = new JTextField(); txt_sno.setColumns(10); JButton
btn_searchgrade
=
new
JButton(\
btn_searchgrade.addActionListener(new ActionListener() { }); JLabel
lblNewLabel_2
=
new
public void actionPerformed(ActionEvent arg0) { }
SearchActionPerformed(arg0);
JLabel(\
JScrollPane scrollPane = new JScrollPane(); scrollPane.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
mousePressed(e);}
});
JLabel lblNewLabel_1 = new JLabel(\ \号\ JLabel lblNewLabel_3 = new JLabel(\ \名\ JLabel lblNewLabel_4 = new JLabel(\ \级\ JLabel lblNewLabel_5 = new JLabel(\ \绩\ txtsname = new JTextField();
12
洛 阳 理 工 学 院 课 程 设 计 报 告
txtsname.setColumns(10); txtcno = new JTextField(); txtcno.setColumns(10); txtgrade = new JTextField(); txtgrade.setColumns(10);
JButton btnalter = new JButton(\ btnalter.addActionListener(new ActionListener() { });
JButton btndelete = new JButton(\ btndelete.addActionListener(new ActionListener() { });
JComboBox usertype = new JComboBox(); txtsno = new JTextField(); txtsno.setColumns(10); GroupLayout
gl_contentPane
=
new
public void actionPerformed(ActionEvent e) { }
DelActionPerformed(e);
public void actionPerformed(ActionEvent e) { }
ModifyActionPerformed(e);
GroupLayout(contentPane); AILING)
gl_contentPane.setHorizontalGroup(
gl_contentPane.createParallelGroup(Alignment.LEADING)
.addGroup(gl_contentPane.createSequentialGroup()
.addContainerGap()
.addGroup(gl_contentPane.createParallelGroup(Alignment.TR
13
洛 阳 理 工 学 院 课 程 设 计 报 告
.addGroup(gl_contentPane.createSequentialGroup()
.addComponent(lblNewLabel)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(txt_sno,
GroupLayout.PREFERRED_SIZE, 125, GroupLayout.PREFERRED_SIZE)
Short.MAX_VALUE)
Short.MAX_VALUE))
.addComponent(btn_searchgrade) .addGap(29))
.addPreferredGap(ComponentPlacement.RELATED, 89,
.addGroup(gl_contentPane.createSequentialGroup()
.addComponent(lblNewLabel_2) .addContainerGap(372,
.addGroup(gl_contentPane.createSequentialGroup()
.addComponent(scrollPane,
GroupLayout.DEFAULT_SIZE, 433, Short.MAX_VALUE)
ADING, false)
AILING, false)
.addComponent(lblNewLabel_1,
.addContainerGap())
.addGroup(gl_contentPane.createSequentialGroup()
.addGap(46)
.addGroup(gl_contentPane.createParallelGroup(Alignment.LE
.addGroup(gl_contentPane.createSequentialGroup() .addGroup(gl_contentPane.createParallelGroup(Alignment.TR
GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(lblNewLabel_3,
14
共分享92篇相关文档