A programme using java swing
In order to setup this program download this software.You should also have xammp app installed.
Now, Unzip the rar file from the link and add those files in xammp folder . https://github.com/NaheedRayan/Readme-Images/tree/master/Student_Management_System_xampp_data Restart xampp start MySQL and open database and table to make sure its working.
You can see in jPanel2 its of type null.The reason behind it is that if you want to add button on top of picture(jLabel) its type has to be null .Moreover the picture(jLabel51) should be at the bottom to show other elements .Or else you will not see other elements.
Now , in the options panel we have used card layout , Because the left part has to be static and the right part has to be dynamic ie.it changes when menu button is clicked.
In this picture we can see the library structure of the programe You have to download the mysql connector from https://www.softpedia.com/get/Internet/Servers/Database-Utils/MySQL-Connector-J.shtml and jCalender from https://toedter.com/jcalendar/ and add them to the librarys
This is the schema of the app .I would not say the app is perfect .There are rooms from improvement .Just modify it as per your likingsđ
To be frank I learned a lot . The using of splitview is hard .Because it creates much clutter in code. So maintainence becomes very hard.I learned it the hard way.
this code is for fetching and linking image from db
byte[] image = rs.getBytes("picture") ;
ImageIcon myImg = new ImageIcon(image) ;
Image img = myImg.getImage().getScaledInstance(jLabelPic.getWidth(),jLabelPic.getHeight(),Image.SCALE_SMOOTH);
ImageIcon myPicture = new ImageIcon(img) ;
jLabelPic.setIcon(myPicture);
This piece of code is used for refreshing the table
DefaultTableModel tableModel = (DefaultTableModel) jTable1.getModel();
tableModel.setRowCount(0);
------------------------------------------------------------------------The End â€â€â€â€đ€---------------------------------------------------------------------------