学生信息管理系统JAVA源代码

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

学生信息管理系统JAVA源代码packagestumanage;importjavax.swing.*;importjava.awt.*;importsun.awt.image.*;importjava.awt.event.*;/***pTitle:/p*pDescription:/p*pCopyright:Copyright(c)2003/p*pCompany:/p*@authornotattributable*@version1.0*/publicclassWelcomeFrameextendsJFrame{JPaneljPanel1=newMyPanel();ImageIconimageIcon1=newImageIcon(beautiful.jpg);BorderLayoutborderLayout1=newBorderLayout();JPaneljPanel2=newJPanel();GridBagLayoutgridBagLayout1=newGridBagLayout();JButtonjButton1=newJButton();JButtonjButton2=newJButton();JButtonjButton3=newJButton();JButtonjButton4=newJButton();JButtonjButton5=newJButton();publicWelcomeFrame(){try{jbInit();}catch(Exceptione){e.printStackTrace();}}publicstaticvoidmain(String[]args){WelcomeFramewelcomeFrame=newWelcomeFrame();welcomeFrame.pack();welcomeFrame.show();}privatevoidjbInit()throwsException{imageIcon1.setDescription(beautiful.jpg);imageIcon1.setImageObserver(this);jPanel1.setLayout(borderLayout1);jPanel1.setMinimumSize(newDimension(600,400));jPanel1.setPreferredSize(newDimension(600,420));this.setLocale(java.util.Locale.getDefault());this.setResizable(true);this.setSize(newDimension(747,396));this.setState(Frame.NORMAL);jPanel2.setBackground(UIManager.getColor(RadioButtonMenuItem.selectionBackground));jPanel2.setForeground(Color.black);jPanel2.setMinimumSize(newDimension(100,30));jPanel2.setPreferredSize(newDimension(100,400));jPanel2.setLayout(gridBagLayout1);jButton1.setToolTipText(个人信息管理);jButton1.setText(个人信息管理);jButton1.addActionListener(newWelcomeFrame_jButton1_actionAdapter(this));jButton2.setToolTipText(选课信息管理);jButton2.setText(选课信息管理);jButton2.addActionListener(newWelcomeFrame_jButton2_actionAdapter(this));jButton3.setToolTipText(奖励信息管理);jButton3.setText(奖励信息管理);jButton3.addActionListener(newWelcomeFrame_jButton3_actionAdapter(this));jButton4.setToolTipText(职务信息管理);jButton4.setText(职务信息管理);jButton4.addActionListener(newWelcomeFrame_jButton4_actionAdapter(this));jButton5.setToolTipText(退出系统);jButton5.setText(退出系统);jButton5.addActionListener(newWelcomeFrame_jButton5_actionAdapter(this));this.getContentPane().add(jPanel1,BorderLayout.CENTER);jPanel1.add(jPanel2,BorderLayout.EAST);jPanel2.add(jButton1,newGridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,newInsets(0,0,0,0),0,0));jPanel2.add(jButton2,newGridBagConstraints(0,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,newInsets(9,0,0,21),0,0));jPanel2.add(jButton3,newGridBagConstraints(0,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,newInsets(10,0,0,10),0,0));jPanel2.add(jButton5,newGridBagConstraints(0,4,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,newInsets(0,0,0,11),21,0));jPanel2.add(jButton4,newGridBagConstraints(0,3,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,newInsets(9,0,13,0),12,0));}classMyPanelextendsJPanel{publicvoidpaintComponent(Graphicsg){super.paintComponent(g);imageIcon1.paintIcon(this,g,0,0);}}voidjButton4_actionPerformed(ActionEvente){MainFrame.main(null);this.hide();MainFrame.jTabbedPane1.setSelectedComponent(MainFrame.jPanel4);}voidjButton1_actionPerformed(ActionEvente){MainFrame.main(null);this.hide();}voidjButton3_actionPerformed(ActionEvente){MainFrame.main(null);this.hide();MainFrame.jTabbedPane1.setSelectedComponent(MainFrame.jPanel3);}voidjButton2_actionPerformed(ActionEvente){MainFrame.main(null);this.hide();MainFrame.jTabbedPane1.setSelectedComponent(MainFrame.jPanel2);}voidjButton5_actionPerformed(ActionEvente){System.exit(0);}}classWelcomeFrame_jButton4_actionAdapterimplementsjava.awt.event.ActionListener{WelcomeFrameadaptee;WelcomeFrame_jButton4_actionAdapter(WelcomeFrameadaptee){this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){adaptee.jButton4_actionPerformed(e);}}classWelcomeFrame_jButton1_actionAdapterimplementsjava.awt.event.ActionListener{WelcomeFrameadaptee;WelcomeFrame_jButton1_actionAdapter(WelcomeFrameadaptee){this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){adaptee.jButton1_actionPerformed(e);}}classWelcomeFrame_jButton3_actionAdapterimplementsjava.awt.event.ActionListener{WelcomeFrameadaptee;WelcomeFrame_jButton3_actionAdapter(WelcomeFrameadaptee){this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){adaptee.jButton3_actionPerformed(e);}}classWelcomeFrame_jButton2_actionAdapterimplementsjava.awt.event.ActionListener{WelcomeFrameadaptee;WelcomeFrame_jButton2_actionAdapter(WelcomeFrameadaptee){this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){adaptee.jButton2_actionPerformed(e);}}classWelcomeFrame_jButton5_actionAdapterimplementsjava.awt.event.ActionListener{WelcomeFrameadaptee;WelcomeFrame_jButton5_actionAdapter(WelcomeFrameadaptee){this.adaptee=adaptee;}publicvoidactionPerformed(ActionEvente){adaptee.jButton5_actionPerformed(e);}}

1 / 7
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功