├── Book Selling System Java-Using Swing-Mysql ├── Add_new_books.java ├── Add_old_books.java ├── Address.java ├── AdminHost.java ├── AdminLogin.java ├── Book Hub.jar ├── Book_selling_system.java ├── BuyBooks.java ├── Create_ac.java ├── Main_screen.java ├── Request.java ├── Show_bookings.java ├── UserHost.java ├── Userlogin.java └── index.html ├── Calculator -GUI-Using Swing ├── Calculator.jar ├── Calculator.java └── index.html ├── Chatboat -Using Swing-AI ├── ChatBot.java ├── ChatBotMain.java └── index.html ├── Employee Management System Java-Using Swing-Mysql └── EmployyeManage │ ├── .classpath │ ├── .gitignore │ ├── .project │ ├── .settings │ └── org.eclipse.jdt.core.prefs │ ├── Documents │ └── Stadium Management System.jar │ └── Project │ ├── Admin │ ├── Add.java │ ├── AddAdmin.java │ ├── AdminHome.java │ ├── AdminLogin.java │ └── Home.java │ └── User │ └── UserLogin.java ├── Event Management System Java-Using Swing-Mysql ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── Documents │ └── Stadium Management System.jar └── Project │ ├── Admin │ ├── Add.java │ ├── AddAdmin.java │ ├── AdminHome.java │ ├── AdminLogin.java │ └── Home.java │ └── User │ └── UserLogin.java ├── Feedback Form Management System Java-Using Swing MySql ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── Documents │ └── Stadium Management System.jar └── Project │ ├── Admin │ ├── Add.java │ ├── AddAdmin.java │ ├── AdminHome.java │ ├── AdminLogin.java │ └── Home.java │ └── User │ └── UserLogin.java ├── Jewellery Shop System Java-Using Swing-Mysql ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── Project │ ├── Admin │ │ ├── Add_Students.java │ │ ├── Add_faculty.java │ │ ├── AdminHome.java │ │ ├── AdminLogin.java │ │ ├── AdminSearch.java │ │ ├── Home.java │ │ └── aa.java │ └── User │ │ ├── Change.java │ │ ├── UserHome.java │ │ └── UserLogin.java ├── bin │ ├── Admin │ │ ├── Add_Students$1.class │ │ ├── Add_Students$2.class │ │ ├── Add_Students.class │ │ ├── Add_faculty$1.class │ │ ├── Add_faculty$2.class │ │ ├── Add_faculty.class │ │ ├── AdminHome$1.class │ │ ├── AdminHome$10.class │ │ ├── AdminHome$2.class │ │ ├── AdminHome$3.class │ │ ├── AdminHome$4.class │ │ ├── AdminHome$5.class │ │ ├── AdminHome$6.class │ │ ├── AdminHome$7.class │ │ ├── AdminHome$8.class │ │ ├── AdminHome$9.class │ │ ├── AdminHome.class │ │ ├── AdminLogin$1.class │ │ ├── AdminLogin$2.class │ │ ├── AdminLogin$3.class │ │ ├── AdminLogin.class │ │ ├── AdminSearch$1.class │ │ ├── AdminSearch$2.class │ │ ├── AdminSearch.class │ │ ├── Home$1.class │ │ ├── Home.class │ │ ├── aa$1.class │ │ ├── aa$2.class │ │ └── aa.class │ └── User │ │ ├── Change$1.class │ │ ├── Change$2.class │ │ ├── Change.class │ │ ├── UserHome$1.class │ │ ├── UserHome$2.class │ │ ├── UserHome$3.class │ │ ├── UserHome$4.class │ │ ├── UserHome$5.class │ │ ├── UserHome.class │ │ ├── UserLogin$1.class │ │ ├── UserLogin$2.class │ │ ├── UserLogin$3.class │ │ └── UserLogin.class └── lib │ └── mysql-connector-java-5.1.47-bin.jar ├── README.md ├── Railway Ticket Booking System Java-Using Swing-Mysql ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── Documents │ └── Stadium Management System.jar └── Project │ ├── Admin │ ├── Add.java │ ├── AddAdmin.java │ ├── AdminHome.java │ ├── AdminLogin.java │ └── Home.java │ └── User │ └── UserLogin.java ├── School Management System Java-Using Swing-Mysql ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── Documents │ └── Stadium Management System.jar └── Project │ ├── Admin │ ├── Add_Students.java │ ├── Add_faculty.java │ ├── AdminHome.java │ ├── AdminLogin.java │ ├── AdminSearch.java │ ├── Home.java │ └── aa.java │ └── User │ ├── Change.java │ ├── UserHome.java │ └── UserLogin.java ├── Software Executable JAR ├── event.jar ├── feedback.jar ├── railway.jar ├── school.jar └── shop.jar ├── Software img ├── Calc1.png ├── Calc2.png └── Chatbot.png ├── Stadium Management Sytem Java-Using Swing-Mysql ├── Add_events.java ├── AdminLogin.java ├── Admin_host.java ├── Create_ac.java ├── MainScreen.java ├── Show_bookings.java ├── Stadium Management System.jar ├── Stedium_Management.java ├── User_host.java ├── Userlogin.java └── index.html └── _config.yml /Book Selling System Java-Using Swing-Mysql/Address.java: -------------------------------------------------------------------------------- 1 | package Textbook_selling_system; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.Font; 6 | 7 | import javax.swing.JFrame; 8 | import javax.swing.JInternalFrame; 9 | import javax.swing.JLabel; 10 | import javax.swing.JOptionPane; 11 | import javax.swing.JPanel; 12 | import javax.swing.JTextArea; 13 | import javax.swing.border.EmptyBorder; 14 | import javax.swing.JEditorPane; 15 | import javax.swing.JButton; 16 | import javax.swing.JScrollBar; 17 | import javax.swing.JScrollPane; 18 | import java.awt.ScrollPane; 19 | import java.awt.Toolkit; 20 | import java.awt.event.ActionListener; 21 | import java.util.Random; 22 | import java.awt.event.ActionEvent; 23 | 24 | public class Address extends JFrame { 25 | 26 | private JPanel contentPane; 27 | public String name; 28 | public String pin; 29 | public String addl; 30 | public String landmark; 31 | /** 32 | * Launch the application. 33 | */ 34 | public static void main(String[] args) { 35 | EventQueue.invokeLater(new Runnable() { 36 | public void run() { 37 | try { 38 | Address frame = new Address(); 39 | frame.setVisible(true); 40 | } catch (Exception e) { 41 | e.printStackTrace(); 42 | } 43 | } 44 | }); 45 | } 46 | 47 | /** 48 | * Create the frame. 49 | */ 50 | public Address() { 51 | // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 52 | setBounds(650, 319, 514, 460); 53 | setResizable(false); 54 | contentPane = new JPanel(); 55 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 56 | setContentPane(contentPane); 57 | contentPane.setLayout(null); 58 | 59 | 60 | JLabel name = new JLabel("Full Name :- "); 61 | name.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 62 | name.setBounds(26, 13, 117, 41); 63 | contentPane.add(name); 64 | 65 | JTextArea namet = new JTextArea(); 66 | namet.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 67 | namet.setBounds(155, 15, 325, 39); 68 | contentPane.add(namet); 69 | 70 | JLabel label = new JLabel("Pincode :- "); 71 | label.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 72 | label.setBounds(26, 74, 117, 41); 73 | contentPane.add(label); 74 | 75 | JTextArea pint = new JTextArea(); 76 | pint.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 77 | pint.setBounds(155, 79, 165, 41); 78 | contentPane.add(pint); 79 | 80 | JLabel label_1 = new JLabel("Address :- "); 81 | label_1.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 82 | label_1.setBounds(26, 150, 117, 41); 83 | contentPane.add(label_1); 84 | 85 | JEditorPane editorPane = new JEditorPane(); 86 | editorPane.setBounds(155, 133, 325, 124); 87 | contentPane.add(editorPane); 88 | 89 | JLabel label_2 = new JLabel("Landmark :- "); 90 | label_2.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 91 | label_2.setBounds(26, 282, 117, 41); 92 | contentPane.add(label_2); 93 | 94 | JTextArea landmarkt = new JTextArea(); 95 | landmarkt.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 96 | landmarkt.setBounds(155, 287, 165, 41); 97 | contentPane.add(landmarkt); 98 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 99 | 100 | 101 | JButton btnAdd = new JButton("Add"); 102 | btnAdd.addActionListener(new ActionListener() { 103 | public void actionPerformed(ActionEvent e) { 104 | 105 | dispose(); 106 | int a=JOptionPane.showConfirmDialog(btnAdd, "Are you ready to process your order?"); 107 | if(a==JOptionPane.YES_OPTION) 108 | { 109 | String name=namet.getText(); 110 | String pin=pint.getText(); 111 | String add=editorPane.getText(); 112 | String landmark=landmarkt.getText(); 113 | 114 | 115 | Random rand=new Random(); 116 | int i=rand.nextInt(9999999); 117 | String tktno=String.valueOf(i); 118 | tktno+="\n"; 119 | String n="\n"; 120 | //seatb+=")\n"; 121 | 122 | String id=String.valueOf(i); 123 | 124 | 125 | JOptionPane.showMessageDialog(btnAdd,"Congratulations,"+n+"Your order is successfully placed"+n+"Your Order Id is "+i+n+"Thankyou."); 126 | 127 | 128 | //JOptionPane.showMessageDialog(btnAdd, "Cogratulations,Your order is successfully placed"); 129 | } 130 | } 131 | }); 132 | btnAdd.setBounds(148, 338, 172, 74); 133 | contentPane.add(btnAdd); 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/AdminLogin.java: -------------------------------------------------------------------------------- 1 | package Textbook_selling_system; 2 | /** 3 | * 4 | * @author Soumyadip Chowdhury 5 | * @github soumyadip007 6 | * 7 | */ 8 | import java.awt.Color; 9 | 10 | import javax.swing.*; 11 | import java.awt.BorderLayout; 12 | import java.awt.EventQueue; 13 | import java.awt.Font; 14 | import java.awt.Toolkit; 15 | 16 | import javax.swing.border.EmptyBorder; 17 | 18 | import java.awt.event.ActionListener; 19 | import java.awt.event.ActionEvent; 20 | import java.awt.Color; 21 | 22 | public class AdminLogin extends JFrame { 23 | 24 | private JPanel contentPane; 25 | private JTextField textField; 26 | private JPasswordField passwordField; 27 | private JButton btnNewButton; 28 | private JButton btnNewButton_1; 29 | private String user[]={"Soumyadip","Soumya"}; 30 | private String pass[]={"abcd","abcde"}; 31 | private JLabel lblNewLabel_1; 32 | private JLabel label; 33 | private JLabel label_1; 34 | /** 35 | * Launch the application. 36 | */ 37 | public static void main(String[] args) { 38 | EventQueue.invokeLater(new Runnable() { 39 | public void run() { 40 | try { 41 | AdminLogin frame = new AdminLogin(); 42 | frame.setTitle("Book Hub"); 43 | frame.setVisible(true); 44 | } catch (Exception e) { 45 | e.printStackTrace(); 46 | } 47 | } 48 | }); 49 | } 50 | 51 | /** 52 | * Create the frame. 53 | */ 54 | public AdminLogin() { 55 | setResizable(false); 56 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 57 | 58 | // .getContentPane().//(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\STDM.jpg")); 59 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 60 | setBounds(450, 190, 1014, 597); 61 | contentPane = new JPanel(); 62 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 63 | setContentPane(contentPane); 64 | contentPane.setLayout(null); 65 | 66 | JLabel lblNewLabel = new JLabel("Admin Login"); 67 | lblNewLabel.setForeground(new Color(255, 255, 102)); 68 | lblNewLabel.setFont(new Font("Times New Roman", Font.PLAIN, 46)); 69 | lblNewLabel.setBounds(364, 60, 273, 93); 70 | contentPane.add(lblNewLabel); 71 | 72 | textField = new JTextField(); 73 | textField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 74 | textField.setBounds(481, 170, 281, 68); 75 | contentPane.add(textField); 76 | textField.setColumns(10); 77 | 78 | passwordField = new JPasswordField(); 79 | passwordField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 80 | passwordField.setBounds(481, 286, 281, 68); 81 | contentPane.add(passwordField); 82 | 83 | JLabel lblUsername = new JLabel("Username"); 84 | lblUsername.setForeground(new Color(255, 255, 255)); 85 | lblUsername.setFont(new Font("Tahoma", Font.PLAIN, 31)); 86 | lblUsername.setBounds(250, 166, 193, 52); 87 | contentPane.add(lblUsername); 88 | 89 | JLabel lblPassword = new JLabel("Password"); 90 | lblPassword.setForeground(new Color(255, 255, 255)); 91 | lblPassword.setBackground(Color.CYAN); 92 | lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 31)); 93 | lblPassword.setBounds(250, 286, 193, 52); 94 | contentPane.add(lblPassword); 95 | 96 | btnNewButton = new JButton("Login"); 97 | btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 26)); 98 | btnNewButton.setBounds(545, 392, 162, 73); 99 | btnNewButton.addActionListener(new ActionListener() { 100 | 101 | public void actionPerformed(ActionEvent e) { 102 | // TODO Auto-generated method stub 103 | int i=0,j=0; 104 | String ustr=textField.getText(); 105 | String pstr=passwordField.getText(); 106 | 107 | 108 | if( ustr.equals("Soumya") && pstr.equals("1234")) 109 | { 110 | dispose(); 111 | AdminHost ah=new AdminHost(); 112 | ah.setTitle("Book Hub"); 113 | ah.setVisible(true); 114 | JOptionPane.showMessageDialog(btnNewButton, "You have successfully logged in"); 115 | } 116 | else 117 | { 118 | JOptionPane.showMessageDialog(btnNewButton, "Wrong Username & Password"); 119 | } 120 | } 121 | }); 122 | 123 | contentPane.add(btnNewButton); 124 | 125 | btnNewButton_1 = new JButton("User Login"); 126 | btnNewButton_1.addActionListener(new ActionListener() { 127 | public void actionPerformed(ActionEvent e) { 128 | dispose(); 129 | Userlogin us=new Userlogin(); 130 | us.setTitle("Book Hub"); 131 | us.setVisible(true); 132 | } 133 | }); 134 | btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 26)); 135 | btnNewButton_1.setBounds(250, 387, 193, 83); 136 | contentPane.add(btnNewButton_1); 137 | 138 | label_1 = new JLabel(""); 139 | label_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\books-wallpaper-49796-51475-hd-wallpapers (Custom).jpg")); 140 | label_1.setBounds(0, 0, 1008, 562); 141 | contentPane.add(label_1); 142 | 143 | 144 | 145 | } 146 | 147 | } 148 | -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/Book Hub.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software/29cc9202e8db60cb94fdb8027269aae55b399bf9/Book Selling System Java-Using Swing-Mysql/Book Hub.jar -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/Book_selling_system.java: -------------------------------------------------------------------------------- 1 | package Textbook_selling_system; 2 | 3 | /** 4 | * 5 | * @author Soumyadip Chowdhury 6 | * @github soumyadip007 7 | * 8 | */ 9 | 10 | public class Book_selling_system { 11 | 12 | 13 | public static void main(String args[]) 14 | { 15 | Main_screen ms=new Main_screen(); 16 | ms.setTitle("Book Hub"); 17 | ms.setVisible(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/BuyBooks.java: -------------------------------------------------------------------------------- 1 | package Textbook_selling_system; 2 | /** 3 | * 4 | * @author Soumyadip Chowdhury 5 | * @github soumyadip007 6 | * 7 | */ 8 | import java.awt.BorderLayout; 9 | import java.awt.EventQueue; 10 | import java.awt.Toolkit; 11 | 12 | import javax.swing.JFrame; 13 | import javax.swing.JOptionPane; 14 | import javax.swing.JPanel; 15 | import javax.swing.border.EmptyBorder; 16 | import javax.swing.table.DefaultTableModel; 17 | import javax.swing.JTable; 18 | import javax.swing.JProgressBar; 19 | import javax.swing.JButton; 20 | import java.awt.event.ActionListener; 21 | import java.awt.event.ActionEvent; 22 | 23 | public class BuyBooks extends JFrame { 24 | 25 | private JPanel contentPane; 26 | 27 | 28 | /** 29 | * Launch the application. 30 | */ 31 | public static void main(String[] args) { 32 | EventQueue.invokeLater(new Runnable() { 33 | public void run() { 34 | try { 35 | BuyBooks frame = new BuyBooks(); 36 | frame.setVisible(true); 37 | } catch (Exception e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | }); 42 | } 43 | 44 | /** 45 | * Create the frame. 46 | */ 47 | public BuyBooks() { 48 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 49 | 50 | setBounds(450, 319, 1014, 460); 51 | setResizable(false); 52 | contentPane = new JPanel(); 53 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 54 | setContentPane(contentPane); 55 | contentPane.setLayout(null); 56 | 57 | String col[]={"Book name","Price","Writter"}; 58 | String data[][]={{"Eng","AAA","S.C"}}; 59 | 60 | JTable table = new JTable(data,col); 61 | DefaultTableModel md=new DefaultTableModel(); 62 | md.setColumnIdentifiers(col); 63 | 64 | table.setModel(md); 65 | 66 | table.setBounds(0, 0, 1008, 303); 67 | table.setFillsViewportHeight(true); 68 | contentPane.add(table); 69 | 70 | JProgressBar progressBar = new JProgressBar(); 71 | progressBar.setBounds(157, 193, 146, 14); 72 | contentPane.add(progressBar); 73 | 74 | JButton btnNewButton = new JButton("Buy"); 75 | btnNewButton.addActionListener(new ActionListener() { 76 | public void actionPerformed(ActionEvent e) { 77 | Address obj=new Address(); 78 | obj.setVisible(true); 79 | 80 | //contentPane.add(obj); 81 | // JOptionPane.showMessageDialog(btnNewButton, "Co; 82 | } 83 | }); 84 | btnNewButton.setBounds(430, 316, 168, 96); 85 | contentPane.add(btnNewButton); 86 | } 87 | } -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/Main_screen.java: -------------------------------------------------------------------------------- 1 | package Textbook_selling_system; 2 | /** 3 | * 4 | * @author Soumyadip Chowdhury 5 | * @github soumyadip007 6 | * 7 | */ 8 | import java.awt.Color; 9 | import java.awt.EventQueue; 10 | import java.awt.Font; 11 | import java.awt.Toolkit; 12 | import java.awt.event.ActionEvent; 13 | import java.awt.event.ActionListener; 14 | 15 | import javax.swing.ImageIcon; 16 | import javax.swing.JButton; 17 | import javax.swing.JFrame; 18 | import javax.swing.JLabel; 19 | import javax.swing.JPanel; 20 | import javax.swing.border.EmptyBorder; 21 | 22 | public class Main_screen extends JFrame { 23 | 24 | /** 25 | * 26 | */ 27 | private static final long serialVersionUID = 1L; 28 | private JPanel contentPane; 29 | 30 | // MainScreen frame; 31 | 32 | 33 | public static void main(String[] args) { 34 | EventQueue.invokeLater(new Runnable() { 35 | public void run() { 36 | try { 37 | 38 | Main_screen frame = new Main_screen(); 39 | frame.setTitle(""); 40 | frame.setVisible(true); 41 | 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | }); 47 | 48 | } 49 | 50 | /** 51 | * Create the frame. 52 | */ 53 | public Main_screen() { 54 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 55 | 56 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 57 | setBounds(450, 190, 1014, 597); 58 | setResizable(false); 59 | //contentPane.setTitle(); 60 | contentPane = new JPanel(); 61 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 62 | setContentPane(contentPane); 63 | contentPane.setLayout(null); 64 | 65 | JLabel lblNewLabel = new JLabel("Book Hub"); 66 | lblNewLabel.setBackground(new Color(255, 200, 0)); 67 | lblNewLabel.setForeground(new Color(204, 255, 0)); 68 | lblNewLabel.setFont(new Font("Comic Sans MS", Font.PLAIN, 50)); 69 | lblNewLabel.setBounds(54, 0, 230, 98); 70 | contentPane.add(lblNewLabel); 71 | 72 | JButton AdminBtn = new JButton("Admin Login"); 73 | AdminBtn.addActionListener(new ActionListener() { 74 | public void actionPerformed(ActionEvent e) { 75 | } 76 | }); 77 | AdminBtn.setFont(new Font("Tahoma", Font.PLAIN, 32)); 78 | AdminBtn.addActionListener(new ActionListener() { 79 | public void actionPerformed(ActionEvent e) { 80 | dispose(); 81 | AdminLogin ad=new AdminLogin(); 82 | ad.setTitle("Book Hub"); 83 | ad.setVisible(true); 84 | } 85 | }); 86 | AdminBtn.setBounds(128, 245, 243, 93); 87 | contentPane.add(AdminBtn); 88 | 89 | JButton UserBtn = new JButton("User Login"); 90 | 91 | UserBtn.setFont(new Font("Tahoma", Font.PLAIN, 32)); 92 | UserBtn.addActionListener(new ActionListener() { 93 | public void actionPerformed(ActionEvent e) { 94 | dispose(); 95 | Userlogin ad=new Userlogin(); 96 | ad.setTitle("Book Hub"); 97 | ad.setVisible(true); 98 | } 99 | }); 100 | UserBtn.setBounds(647, 245, 243, 93); 101 | contentPane.add(UserBtn); 102 | 103 | 104 | 105 | JLabel lblBuySellRecycle = new JLabel("Buy Sell Recycle"); 106 | lblBuySellRecycle.setForeground(new Color(255, 255, 204)); 107 | lblBuySellRecycle.setFont(new Font("Sylfaen", Font.PLAIN, 28)); 108 | lblBuySellRecycle.setBounds(136, 52, 431, 86); 109 | contentPane.add(lblBuySellRecycle); 110 | 111 | JLabel lblNewLabel_1 = new JLabel(""); 112 | lblNewLabel_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 113 | lblNewLabel_1.setBounds(0, 0, 1008, 562); 114 | contentPane.add(lblNewLabel_1); 115 | 116 | } 117 | } -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/Request.java: -------------------------------------------------------------------------------- 1 | package Textbook_selling_system; 2 | /** 3 | * 4 | * @author Soumyadip Chowdhury 5 | * @github soumyadip007 6 | * 7 | */ 8 | import java.awt.BorderLayout; 9 | import java.awt.EventQueue; 10 | import java.awt.Font; 11 | 12 | import javax.swing.JFrame; 13 | import javax.swing.JPanel; 14 | import javax.swing.border.EmptyBorder; 15 | import javax.swing.JTextArea; 16 | import javax.swing.JLabel; 17 | import javax.swing.JOptionPane; 18 | import javax.swing.JButton; 19 | import javax.swing.JTextField; 20 | import java.awt.event.ActionListener; 21 | import java.util.Random; 22 | import java.awt.event.ActionEvent; 23 | 24 | public class Request extends JFrame { 25 | 26 | private JPanel contentPane; 27 | private JTextField textField; 28 | 29 | /** 30 | * Launch the application. 31 | */ 32 | public static void main(String[] args) { 33 | EventQueue.invokeLater(new Runnable() { 34 | public void run() { 35 | try { 36 | Request frame = new Request(); 37 | frame.setVisible(true); 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | }); 43 | } 44 | 45 | /** 46 | * Create the frame. 47 | */ 48 | public Request() { 49 | setBounds(450, 319, 1014, 460); 50 | setResizable(false); 51 | contentPane = new JPanel(); 52 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 53 | setContentPane(contentPane); 54 | contentPane.setLayout(null); 55 | 56 | JTextArea textArea = new JTextArea(); 57 | textArea.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 58 | textArea.setBounds(12, 66, 984, 276); 59 | contentPane.add(textArea); 60 | 61 | JLabel lblNewLabel = new JLabel("Enter your Email :-"); 62 | lblNewLabel.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 63 | lblNewLabel.setBounds(12, 13, 168, 39); 64 | contentPane.add(lblNewLabel); 65 | 66 | 67 | 68 | textField = new JTextField(); 69 | textField.setFont(new Font("Segoe UI", Font.PLAIN, 20)); 70 | textField.setBounds(192, 13, 423, 39); 71 | contentPane.add(textField); 72 | textField.setColumns(10); 73 | 74 | JButton btnRequest = new JButton("Request"); 75 | btnRequest.addActionListener(new ActionListener() { 76 | public void actionPerformed(ActionEvent e) { 77 | String email=textField.getText(); 78 | String complain=textArea.getText(); 79 | 80 | 81 | Random rand=new Random(); 82 | int i=rand.nextInt(9999999); 83 | String tktno=String.valueOf(i); 84 | tktno+="\n"; 85 | String n="\n"; 86 | //seatb+=")\n"; 87 | 88 | String id=String.valueOf(i); 89 | 90 | JOptionPane.showMessageDialog(btnRequest,"Congratulations,"+n+"We have recived your request"+n+"We'll contact to you within 24 working hrs"+n+"Your Request id is"+i+n+"Thankyou."); 91 | 92 | } 93 | }); 94 | btnRequest.setFont(new Font("Segoe UI", Font.PLAIN, 30)); 95 | btnRequest.setBounds(405, 355, 259, 57); 96 | contentPane.add(btnRequest); 97 | } 98 | } -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/Show_bookings.java: -------------------------------------------------------------------------------- 1 | package Textbook_selling_system; 2 | /** 3 | * 4 | * @author Soumyadip Chowdhury 5 | * @github soumyadip007 6 | * 7 | */ 8 | import java.awt.BorderLayout; 9 | import java.awt.EventQueue; 10 | import java.awt.Toolkit; 11 | 12 | import javax.swing.JFrame; 13 | import javax.swing.JPanel; 14 | import javax.swing.border.EmptyBorder; 15 | import javax.swing.table.DefaultTableCellRenderer; 16 | import javax.swing.table.DefaultTableModel; 17 | import javax.swing.JToggleButton; 18 | import javax.swing.JTable; 19 | 20 | public class Show_bookings extends JFrame { 21 | 22 | private JPanel contentPane; 23 | private final JTable table = new JTable(); 24 | 25 | /** 26 | * Launch the application. 27 | */ 28 | public static void main(String[] args) { 29 | EventQueue.invokeLater(new Runnable() { 30 | public void run() { 31 | try { 32 | Show_bookings frame = new Show_bookings(); 33 | frame.setVisible(true); 34 | } catch (Exception e) { 35 | e.printStackTrace(); 36 | } 37 | } 38 | }); 39 | } 40 | 41 | /** 42 | * Create the frame. 43 | */ 44 | public Show_bookings() { 45 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 46 | 47 | setBounds(450, 319, 1014, 460); 48 | setResizable(false); 49 | contentPane = new JPanel(); 50 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 51 | setContentPane(contentPane); 52 | contentPane.setLayout(null); 53 | 54 | 55 | String col[]={"Name","Username","Address","Book name","Price","Conition"}; 56 | String col1[][] = null; 57 | DefaultTableModel md=new DefaultTableModel(); 58 | md.setColumnIdentifiers(col); 59 | 60 | 61 | JTable jt=new JTable(col1,col); 62 | jt.setBounds(1, 1, 1008, 425); 63 | jt.setModel(md); 64 | contentPane.add(jt); 65 | //jt.addColumnSelectionInterval(col); 66 | 67 | 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /Book Selling System Java-Using Swing-Mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Calculator -GUI-Using Swing/Calculator.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software/29cc9202e8db60cb94fdb8027269aae55b399bf9/Calculator -GUI-Using Swing/Calculator.jar -------------------------------------------------------------------------------- /Calculator -GUI-Using Swing/index.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chatboat -Using Swing-AI/ChatBot.java: -------------------------------------------------------------------------------- 1 | package ChatBot; 2 | /** 3 | * 4 | * @author Soumyadip Chowdhury 5 | * @github soumyadip007 6 | * 7 | */ 8 | public class ChatBot { 9 | 10 | public static void main(String[] args) { 11 | ChatBotMain obj=new ChatBotMain(); 12 | obj.setTitle("ChatBot(Team-Cognito)"); 13 | obj.setVisible(true); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Chatboat -Using Swing-AI/index.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | EmployyeManage 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/Documents/Stadium Management System.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software/29cc9202e8db60cb94fdb8027269aae55b399bf9/Employee Management System Java-Using Swing-Mysql/EmployyeManage/Documents/Stadium Management System.jar -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/Project/Admin/AddAdmin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.Font; 6 | import java.awt.event.ActionEvent; 7 | import java.awt.event.ActionListener; 8 | import java.sql.DriverManager; 9 | 10 | import javax.swing.ButtonGroup; 11 | import javax.swing.JButton; 12 | import javax.swing.JComboBox; 13 | import javax.swing.JFrame; 14 | import javax.swing.JLabel; 15 | import javax.swing.JOptionPane; 16 | import javax.swing.JPanel; 17 | import javax.swing.JRadioButton; 18 | import javax.swing.JTextArea; 19 | import javax.swing.border.EmptyBorder; 20 | 21 | import com.mysql.jdbc.Connection; 22 | import com.mysql.jdbc.PreparedStatement; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AddAdmin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | 33 | /** 34 | * Launch the application. 35 | */ 36 | public static void main(String[] args) { 37 | EventQueue.invokeLater(new Runnable() { 38 | public void run() { 39 | try { 40 | AddAdmin frame = new AddAdmin(); 41 | frame.setVisible(true); 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | }); 47 | } 48 | 49 | /** 50 | * Create the frame. 51 | */ 52 | public AddAdmin() { 53 | //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 54 | setBounds(450, 319, 1014, 460); 55 | setResizable(false); 56 | contentPane = new JPanel(); 57 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 58 | setContentPane(contentPane); 59 | contentPane.setLayout(null); 60 | 61 | 62 | 63 | JTextArea nm = new JTextArea(); 64 | nm.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 65 | nm.setBounds(280, 26, 688, 80); 66 | contentPane.add(nm); 67 | ButtonGroup btg=new ButtonGroup(); 68 | 69 | 70 | JTextArea sub = new JTextArea(); 71 | sub.setFont(new Font("Segoe UI", Font.PLAIN, 37)); 72 | sub.setBounds(280, 119, 688, 80); 73 | contentPane.add(sub); 74 | /** 75 | * 76 | * @author Soumyadip Chowdhury 77 | * @github soumyadip007 78 | * 79 | */ 80 | JLabel lblAdminName = new JLabel("Admin Name:"); 81 | lblAdminName.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 82 | lblAdminName.setBounds(32, 26, 285, 81); 83 | contentPane.add(lblAdminName); 84 | 85 | JTextArea idd = new JTextArea(); 86 | idd.setFont(new Font("Segoe UI", Font.PLAIN, 38)); 87 | idd.setBounds(280, 212, 688, 81); 88 | contentPane.add(idd); 89 | 90 | JLabel lblAdminId = new JLabel("Admin ID:"); 91 | lblAdminId.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 92 | lblAdminId.setBounds(32, 130, 285, 81); 93 | contentPane.add(lblAdminId); 94 | 95 | JLabel lblAdminEmail = new JLabel("Admin Email:"); 96 | lblAdminEmail.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 97 | lblAdminEmail.setBounds(32, 212, 285, 81); 98 | contentPane.add(lblAdminEmail); 99 | 100 | JButton btnNewButton = new JButton("Add"); 101 | btnNewButton.addActionListener(new ActionListener() { 102 | /* (non-Javadoc) 103 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) 104 | */ 105 | public void actionPerformed(ActionEvent e) { 106 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 107 | //JOptionPane.setRootFrame(null); 108 | if(a==JOptionPane.YES_OPTION){ 109 | 110 | String name1=nm.getText(); 111 | String sub1=sub.getText(); 112 | int j=0; 113 | String id1=idd.getText(); 114 | try{ 115 | System.out.println("add"); 116 | 117 | Class.forName("com.mysql.jdbc.Driver"); 118 | 119 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 120 | 121 | PreparedStatement st=(PreparedStatement) con.prepareStatement("INSERT INTO facult(name,user,email,pass) values(?,?,?,?)"); 122 | 123 | st.setString(1, name1); 124 | st.setString(2, id1); 125 | st.setString(3, sub1); 126 | st.setString(4, "UEMK"); 127 | 128 | 129 | j=st.executeUpdate(); 130 | 131 | } 132 | catch(Exception w1) 133 | { 134 | System.out.println(w1); 135 | } 136 | 137 | int i = 0; 138 | if(j==1) 139 | { 140 | String n="\n"; 141 | 142 | 143 | JOptionPane.showMessageDialog(btnNewButton,"Congratulations,"+n+"Events is added sucessfully"+n+"Thankyou."); 144 | } 145 | else 146 | { 147 | 148 | JOptionPane.showMessageDialog(btnNewButton,"Please,enter the informations"); 149 | } 150 | } 151 | 152 | } 153 | }); 154 | btnNewButton.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 155 | btnNewButton.setBounds(388, 320, 197, 80); 156 | contentPane.add(btnNewButton); 157 | 158 | 159 | } 160 | } -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/Project/Admin/AdminHome.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | 5 | /** 6 | * 7 | * @author Soumyadip Chowdhury 8 | * @github soumyadip007 9 | * 10 | */ 11 | import java.awt.EventQueue; 12 | import java.awt.Font; 13 | import java.awt.Toolkit; 14 | import java.awt.event.ActionEvent; 15 | import java.awt.event.ActionListener; 16 | import java.sql.DriverManager; 17 | import java.sql.ResultSet; 18 | 19 | import javax.swing.ImageIcon; 20 | import javax.swing.JButton; 21 | import javax.swing.JFrame; 22 | import javax.swing.JLabel; 23 | import javax.swing.JMenu; 24 | import javax.swing.JMenuBar; 25 | import javax.swing.JMenuItem; 26 | import javax.swing.JOptionPane; 27 | import javax.swing.JPanel; 28 | import javax.swing.border.EmptyBorder; 29 | 30 | import com.mysql.jdbc.Connection; 31 | import com.mysql.jdbc.PreparedStatement; 32 | 33 | import javax.swing.JTextArea; 34 | import java.awt.Color; 35 | import javax.swing.UIManager; 36 | public class AdminHome extends JFrame { 37 | 38 | private JPanel contentPane; 39 | private JFrame jf; 40 | 41 | /** 42 | * Launch the application. 43 | */ 44 | public static void main(String[] args) { 45 | EventQueue.invokeLater(new Runnable() { 46 | public void run() { 47 | try { 48 | AdminHome frame = new AdminHome(); 49 | frame.setVisible(true); 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } 53 | } 54 | }); 55 | } 56 | 57 | /** 58 | * Create the frame. 59 | */ 60 | public AdminHome() { 61 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 62 | 63 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 64 | setBounds(450, 190, 1014, 597); 65 | setResizable(false); 66 | contentPane = new JPanel(); 67 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 68 | setContentPane(contentPane); 69 | contentPane.setLayout(null); 70 | 71 | JMenuBar menuBar = new JMenuBar(); 72 | menuBar.setBounds(0, 0, 1008, 26); 73 | contentPane.add(menuBar); 74 | 75 | JMenu mnNewMenu_1 = new JMenu("Main Menu"); 76 | menuBar.add(mnNewMenu_1); 77 | 78 | JMenuItem mntmAddOldBooks = new JMenuItem("AddAdmin Events\r\n"); 79 | mntmAddOldBooks.addActionListener(new ActionListener() { 80 | public void actionPerformed(ActionEvent e) { 81 | Add obj=new Add(); 82 | obj.setVisible(true); 83 | } 84 | }); 85 | mnNewMenu_1.add(mntmAddOldBooks); 86 | 87 | JButton btnNewButton = new JButton("Log Out"); 88 | btnNewButton.addActionListener(new ActionListener() { 89 | public void actionPerformed(ActionEvent e) { 90 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 91 | //JOptionPane.setRootFrame(null); 92 | if(a==JOptionPane.YES_OPTION){ 93 | 94 | dispose(); 95 | AdminLogin ms=new AdminLogin(); 96 | ms.setTitle("Faculty Login"); 97 | ms.setVisible(true); 98 | } 99 | } 100 | }); 101 | btnNewButton.setBounds(899, 39, 97, 25); 102 | contentPane.add(btnNewButton); 103 | 104 | JButton add = new JButton("Add Employee"); 105 | add.setBackground(UIManager.getColor("Button.light")); 106 | add.setFont(new Font("Tahoma", Font.PLAIN, 45)); 107 | add.addActionListener(new ActionListener() { 108 | public void actionPerformed(ActionEvent e) { 109 | Add obj=new Add(); 110 | obj.setVisible(true); 111 | } 112 | }); 113 | add.setBounds(46, 51, 329, 460); 114 | contentPane.add(add); 115 | 116 | JButton btnAllEvents = new JButton("All Employee"); 117 | btnAllEvents.setFont(new Font("Tahoma", Font.PLAIN, 65)); 118 | btnAllEvents.addActionListener(new ActionListener() { 119 | public void actionPerformed(ActionEvent e) { 120 | Home obj=new Home(); 121 | obj.setVisible(true); 122 | } 123 | }); 124 | btnAllEvents.setBounds(405, 88, 548, 236); 125 | contentPane.add(btnAllEvents); 126 | /** 127 | * 128 | * @author Soumyadip Chowdhury 129 | * @github soumyadip007 130 | * 131 | */ 132 | JButton btnAddFaculty = new JButton("Add Admin"); 133 | btnAddFaculty.setFont(new Font("Tahoma", Font.PLAIN, 48)); 134 | btnAddFaculty.addActionListener(new ActionListener() { 135 | public void actionPerformed(ActionEvent e) { 136 | AddAdmin obj=new AddAdmin(); 137 | obj.setVisible(true); 138 | } 139 | }); 140 | btnAddFaculty.setBounds(405, 345, 548, 166); 141 | contentPane.add(btnAddFaculty); 142 | 143 | JMenu mnNewMenu = new JMenu("Search"); 144 | mnNewMenu.setBounds(0, 39, 58, -32); 145 | contentPane.add(mnNewMenu); 146 | 147 | JLabel label = new JLabel(""); 148 | label.setBackground(Color.BLACK); 149 | label.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\why-you-should-read-and-re-read-these-high-school-books-as-an-adult (Custom).jpeg")); 150 | label.setBounds(0, 26, 1008, 536); 151 | contentPane.add(label); 152 | } 153 | } -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/Project/Admin/AdminLogin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.Color; 4 | 5 | import javax.swing.*; 6 | import java.awt.BorderLayout; 7 | import java.awt.EventQueue; 8 | import java.awt.Font; 9 | import java.awt.Toolkit; 10 | 11 | import javax.swing.border.EmptyBorder; 12 | 13 | import com.mysql.jdbc.Connection; 14 | import com.mysql.jdbc.PreparedStatement; 15 | 16 | import User.UserLogin; 17 | 18 | import java.awt.event.ActionListener; 19 | import java.sql.DriverManager; 20 | import java.sql.ResultSet; 21 | import java.awt.event.ActionEvent; 22 | import java.awt.Color; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AdminLogin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | private JTextField textField; 33 | private JPasswordField passwordField; 34 | private JButton btnNewButton; 35 | private String user[]={"Soumyadip","Soumya"}; 36 | private String pass[]={"abcd","abcde"}; 37 | private JLabel lblNewLabel_1; 38 | private JLabel label; 39 | private JLabel label_1; 40 | 41 | 42 | public static void main(String[] args) { 43 | EventQueue.invokeLater(new Runnable() { 44 | public void run() { 45 | try { 46 | AdminLogin frame = new AdminLogin(); 47 | frame.setTitle("School Management System"); 48 | frame.setVisible(true); 49 | } catch (Exception e) { 50 | e.printStackTrace(); 51 | } 52 | } 53 | }); 54 | } 55 | 56 | 57 | public AdminLogin() { 58 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 59 | setBounds(450, 190, 1014, 597); 60 | setResizable(false); 61 | 62 | contentPane = new JPanel(); 63 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 64 | setContentPane(contentPane); 65 | contentPane.setLayout(null); 66 | 67 | JLabel lblNewLabel = new JLabel("Employee Management Login"); 68 | lblNewLabel.setForeground(Color.BLACK); 69 | lblNewLabel.setFont(new Font("Times New Roman", Font.PLAIN, 46)); 70 | lblNewLabel.setBounds(210, 13, 594, 126); 71 | contentPane.add(lblNewLabel); 72 | 73 | textField = new JTextField(); 74 | textField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 75 | textField.setBounds(481, 170, 281, 68); 76 | contentPane.add(textField); 77 | textField.setColumns(10); 78 | 79 | passwordField = new JPasswordField(); 80 | passwordField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 81 | passwordField.setBounds(481, 286, 281, 68); 82 | contentPane.add(passwordField); 83 | 84 | JLabel lblUsername = new JLabel("Admin-ID"); 85 | lblUsername.setBackground(Color.BLACK); 86 | lblUsername.setForeground(Color.BLACK); 87 | lblUsername.setFont(new Font("Tahoma", Font.PLAIN, 31)); 88 | lblUsername.setBounds(250, 178, 193, 52); 89 | contentPane.add(lblUsername); 90 | 91 | JLabel lblPassword = new JLabel("Password"); 92 | lblPassword.setForeground(Color.BLACK); 93 | lblPassword.setBackground(Color.CYAN); 94 | lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 31)); 95 | lblPassword.setBounds(250, 286, 193, 52); 96 | contentPane.add(lblPassword); 97 | 98 | btnNewButton = new JButton("Login"); 99 | btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 31)); 100 | btnNewButton.setBounds(408, 392, 354, 73); 101 | btnNewButton.addActionListener(new ActionListener() { 102 | 103 | public void actionPerformed(ActionEvent e) { 104 | // TODO Auto-generated method stub 105 | int i=0,j=0; 106 | String ustr=textField.getText(); 107 | String pstr=passwordField.getText(); 108 | try{ 109 | System.out.println("add"); 110 | 111 | Class.forName("com.mysql.jdbc.Driver"); 112 | 113 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 114 | 115 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select user,pass from facult where user=? and pass=?"); 116 | 117 | st.setString(1,ustr); 118 | st.setString(2,pstr); 119 | ResultSet rs=st.executeQuery(); 120 | if(rs.next()) 121 | { 122 | 123 | i=1; 124 | } 125 | else{ 126 | 127 | i=0; 128 | } 129 | } 130 | catch(Exception w1) 131 | { 132 | System.out.println(w1); 133 | } 134 | 135 | if(i==1) 136 | { 137 | dispose(); 138 | AdminHome ah=new AdminHome(); 139 | ah.setTitle("Faculty Home"); 140 | ah.setVisible(true); 141 | JOptionPane.showMessageDialog(btnNewButton, "You have successfully logged in"); 142 | } 143 | else 144 | { 145 | JOptionPane.showMessageDialog(btnNewButton, "Wrong Username & Password"); 146 | } 147 | } 148 | }); 149 | 150 | contentPane.add(btnNewButton); 151 | 152 | label_1 = new JLabel(""); 153 | // label_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\a11.jpg")); 154 | label_1.setBounds(0, 0, 1008, 562); 155 | contentPane.add(label_1); 156 | } 157 | 158 | } -------------------------------------------------------------------------------- /Employee Management System Java-Using Swing-Mysql/EmployyeManage/Project/Admin/Home.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.EventQueue; 4 | import java.awt.List; 5 | import java.sql.DriverManager; 6 | import java.sql.ResultSet; 7 | 8 | import javax.swing.JButton; 9 | import javax.swing.JFrame; 10 | import javax.swing.JPanel; 11 | import javax.swing.JTable; 12 | import javax.swing.border.EmptyBorder; 13 | 14 | import com.mysql.jdbc.Connection; 15 | import com.mysql.jdbc.PreparedStatement; 16 | /** 17 | * 18 | * @author Soumyadip Chowdhury 19 | * @github soumyadip007 20 | * 21 | */ 22 | public class Home extends JFrame { 23 | 24 | private JPanel contentPane; 25 | private JTable table; 26 | 27 | /** 28 | * Launch the application. 29 | */ 30 | public static void main(String[] args) { 31 | 32 | 33 | EventQueue.invokeLater(new Runnable() { 34 | public void run() { 35 | try { 36 | Home frame = new Home(); 37 | frame.setVisible(true); 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | }); 43 | } 44 | 45 | /** 46 | * Create the frame. 47 | */ 48 | public Home() { 49 | // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 50 | setBounds(450, 319, 1014, 460); 51 | setResizable(false); 52 | 53 | contentPane = new JPanel(); 54 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 55 | setContentPane(contentPane); 56 | contentPane.setLayout(null); 57 | 58 | JButton btnNewButton = new JButton("New button"); 59 | btnNewButton.setBounds(490, 441, 97, 25); 60 | contentPane.add(btnNewButton); 61 | 62 | String[][] data =new String[100][2]; 63 | int i=0,j=0; 64 | List li1=new List(); 65 | List li2=new List(); 66 | List li3=new List(); 67 | List li4=new List(); 68 | List li5=new List(); 69 | List li6=new List(); 70 | List li7=new List(); 71 | List li8=new List(); 72 | // Column Names 73 | String[] columnNames = { "Name", "Department", }; 74 | 75 | // Initializing the JTable 76 | 77 | 78 | try{ 79 | System.out.println("add"); 80 | 81 | Class.forName("com.mysql.jdbc.Driver"); 82 | //System.out.println("add"); 83 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 84 | //System.out.println("add"); 85 | 86 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select name,class,section,roll,teach from stu"); 87 | //System.out.println("add"); 88 | //st.setString(7,city); 89 | 90 | ResultSet rs=st.executeQuery(); 91 | 92 | li1.add("|-----|Name|-----|"); 93 | 94 | li2.add("|-----|Class-Section-Roll-Teach|-----|"); 95 | 96 | while(rs.next()) 97 | { 98 | /*data[i][j]=rs.getString(1); 99 | j++; 100 | data[i][j]=rs.getString(2); 101 | //System.out.println(data[i][j]); 102 | i++;*/ 103 | li1.add(rs.getString(1)); 104 | i++; 105 | li2.add(rs.getString(2)+"-"+rs.getString(3)+"-"+rs.getString(4)+"-"+rs.getString(5)); 106 | 107 | } 108 | } 109 | catch(Exception e) 110 | { 111 | System.out.println(e); 112 | } 113 | String data1[][]=new String[i][i]; 114 | 115 | j=0; 116 | for (int k=0;k 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Event Mnagement 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/Documents/Stadium Management System.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software/29cc9202e8db60cb94fdb8027269aae55b399bf9/Event Management System Java-Using Swing-Mysql/Documents/Stadium Management System.jar -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/Project/Admin/AddAdmin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.Font; 6 | import java.awt.event.ActionEvent; 7 | import java.awt.event.ActionListener; 8 | import java.sql.DriverManager; 9 | 10 | import javax.swing.ButtonGroup; 11 | import javax.swing.JButton; 12 | import javax.swing.JComboBox; 13 | import javax.swing.JFrame; 14 | import javax.swing.JLabel; 15 | import javax.swing.JOptionPane; 16 | import javax.swing.JPanel; 17 | import javax.swing.JRadioButton; 18 | import javax.swing.JTextArea; 19 | import javax.swing.border.EmptyBorder; 20 | 21 | import com.mysql.jdbc.Connection; 22 | import com.mysql.jdbc.PreparedStatement; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AddAdmin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | 33 | /** 34 | * Launch the application. 35 | */ 36 | public static void main(String[] args) { 37 | EventQueue.invokeLater(new Runnable() { 38 | public void run() { 39 | try { 40 | AddAdmin frame = new AddAdmin(); 41 | frame.setVisible(true); 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | }); 47 | } 48 | 49 | /** 50 | * Create the frame. 51 | */ 52 | public AddAdmin() { 53 | //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 54 | setBounds(450, 319, 1014, 460); 55 | setResizable(false); 56 | contentPane = new JPanel(); 57 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 58 | setContentPane(contentPane); 59 | contentPane.setLayout(null); 60 | 61 | 62 | 63 | JTextArea nm = new JTextArea(); 64 | nm.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 65 | nm.setBounds(280, 26, 688, 80); 66 | contentPane.add(nm); 67 | ButtonGroup btg=new ButtonGroup(); 68 | 69 | 70 | JTextArea sub = new JTextArea(); 71 | sub.setFont(new Font("Segoe UI", Font.PLAIN, 37)); 72 | sub.setBounds(280, 119, 688, 80); 73 | contentPane.add(sub); 74 | /** 75 | * 76 | * @author Soumyadip Chowdhury 77 | * @github soumyadip007 78 | * 79 | */ 80 | JLabel lblAdminName = new JLabel("Admin Name:"); 81 | lblAdminName.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 82 | lblAdminName.setBounds(32, 26, 285, 81); 83 | contentPane.add(lblAdminName); 84 | 85 | JTextArea idd = new JTextArea(); 86 | idd.setFont(new Font("Segoe UI", Font.PLAIN, 38)); 87 | idd.setBounds(280, 212, 688, 81); 88 | contentPane.add(idd); 89 | 90 | JLabel lblAdminId = new JLabel("Admin ID:"); 91 | lblAdminId.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 92 | lblAdminId.setBounds(32, 130, 285, 81); 93 | contentPane.add(lblAdminId); 94 | 95 | JLabel lblAdminEmail = new JLabel("Admin Email:"); 96 | lblAdminEmail.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 97 | lblAdminEmail.setBounds(32, 212, 285, 81); 98 | contentPane.add(lblAdminEmail); 99 | 100 | JButton btnNewButton = new JButton("Add"); 101 | btnNewButton.addActionListener(new ActionListener() { 102 | /* (non-Javadoc) 103 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) 104 | */ 105 | public void actionPerformed(ActionEvent e) { 106 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 107 | //JOptionPane.setRootFrame(null); 108 | if(a==JOptionPane.YES_OPTION){ 109 | 110 | String name1=nm.getText(); 111 | String sub1=sub.getText(); 112 | int j=0; 113 | String id1=idd.getText(); 114 | try{ 115 | System.out.println("add"); 116 | 117 | Class.forName("com.mysql.jdbc.Driver"); 118 | 119 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 120 | 121 | PreparedStatement st=(PreparedStatement) con.prepareStatement("INSERT INTO facult(name,user,email,pass) values(?,?,?,?)"); 122 | 123 | st.setString(1, name1); 124 | st.setString(2, id1); 125 | st.setString(3, sub1); 126 | st.setString(4, "UEMK"); 127 | 128 | 129 | j=st.executeUpdate(); 130 | 131 | } 132 | catch(Exception w1) 133 | { 134 | System.out.println(w1); 135 | } 136 | 137 | int i = 0; 138 | if(j==1) 139 | { 140 | String n="\n"; 141 | 142 | 143 | JOptionPane.showMessageDialog(btnNewButton,"Congratulations,"+n+"Events is added sucessfully"+n+"Thankyou."); 144 | } 145 | else 146 | { 147 | 148 | JOptionPane.showMessageDialog(btnNewButton,"Please,enter the informations"); 149 | } 150 | } 151 | 152 | } 153 | }); 154 | btnNewButton.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 155 | btnNewButton.setBounds(388, 320, 197, 80); 156 | contentPane.add(btnNewButton); 157 | 158 | 159 | } 160 | } -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/Project/Admin/AdminHome.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | 5 | /** 6 | * 7 | * @author Soumyadip Chowdhury 8 | * @github soumyadip007 9 | * 10 | */ 11 | import java.awt.EventQueue; 12 | import java.awt.Font; 13 | import java.awt.Toolkit; 14 | import java.awt.event.ActionEvent; 15 | import java.awt.event.ActionListener; 16 | import java.sql.DriverManager; 17 | import java.sql.ResultSet; 18 | 19 | import javax.swing.ImageIcon; 20 | import javax.swing.JButton; 21 | import javax.swing.JFrame; 22 | import javax.swing.JLabel; 23 | import javax.swing.JMenu; 24 | import javax.swing.JMenuBar; 25 | import javax.swing.JMenuItem; 26 | import javax.swing.JOptionPane; 27 | import javax.swing.JPanel; 28 | import javax.swing.border.EmptyBorder; 29 | 30 | import com.mysql.jdbc.Connection; 31 | import com.mysql.jdbc.PreparedStatement; 32 | 33 | import javax.swing.JTextArea; 34 | import java.awt.Color; 35 | import javax.swing.UIManager; 36 | public class AdminHome extends JFrame { 37 | 38 | private JPanel contentPane; 39 | private JFrame jf; 40 | 41 | /** 42 | * Launch the application. 43 | */ 44 | public static void main(String[] args) { 45 | EventQueue.invokeLater(new Runnable() { 46 | public void run() { 47 | try { 48 | AdminHome frame = new AdminHome(); 49 | frame.setVisible(true); 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } 53 | } 54 | }); 55 | } 56 | 57 | /** 58 | * Create the frame. 59 | */ 60 | public AdminHome() { 61 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 62 | 63 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 64 | setBounds(450, 190, 1014, 597); 65 | setResizable(false); 66 | contentPane = new JPanel(); 67 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 68 | setContentPane(contentPane); 69 | contentPane.setLayout(null); 70 | 71 | JMenuBar menuBar = new JMenuBar(); 72 | menuBar.setBounds(0, 0, 1008, 26); 73 | contentPane.add(menuBar); 74 | 75 | JMenu mnNewMenu_1 = new JMenu("Main Menu"); 76 | menuBar.add(mnNewMenu_1); 77 | 78 | JMenuItem mntmAddOldBooks = new JMenuItem("AddAdmin Events\r\n"); 79 | mntmAddOldBooks.addActionListener(new ActionListener() { 80 | public void actionPerformed(ActionEvent e) { 81 | Add obj=new Add(); 82 | obj.setVisible(true); 83 | } 84 | }); 85 | mnNewMenu_1.add(mntmAddOldBooks); 86 | 87 | JButton btnNewButton = new JButton("Log Out"); 88 | btnNewButton.addActionListener(new ActionListener() { 89 | public void actionPerformed(ActionEvent e) { 90 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 91 | //JOptionPane.setRootFrame(null); 92 | if(a==JOptionPane.YES_OPTION){ 93 | 94 | dispose(); 95 | AdminLogin ms=new AdminLogin(); 96 | ms.setTitle("Faculty Login"); 97 | ms.setVisible(true); 98 | } 99 | } 100 | }); 101 | btnNewButton.setBounds(899, 39, 97, 25); 102 | contentPane.add(btnNewButton); 103 | 104 | JButton add = new JButton("Add Events"); 105 | add.setBackground(UIManager.getColor("Button.light")); 106 | add.setFont(new Font("Tahoma", Font.PLAIN, 45)); 107 | add.addActionListener(new ActionListener() { 108 | public void actionPerformed(ActionEvent e) { 109 | Add obj=new Add(); 110 | obj.setVisible(true); 111 | } 112 | }); 113 | add.setBounds(46, 51, 329, 460); 114 | contentPane.add(add); 115 | 116 | JButton btnAllEvents = new JButton("All Events"); 117 | btnAllEvents.setFont(new Font("Tahoma", Font.PLAIN, 65)); 118 | btnAllEvents.addActionListener(new ActionListener() { 119 | public void actionPerformed(ActionEvent e) { 120 | Home obj=new Home(); 121 | obj.setVisible(true); 122 | } 123 | }); 124 | btnAllEvents.setBounds(405, 88, 548, 236); 125 | contentPane.add(btnAllEvents); 126 | /** 127 | * 128 | * @author Soumyadip Chowdhury 129 | * @github soumyadip007 130 | * 131 | */ 132 | JButton btnAddFaculty = new JButton("Add Event Maneger"); 133 | btnAddFaculty.setFont(new Font("Tahoma", Font.PLAIN, 48)); 134 | btnAddFaculty.addActionListener(new ActionListener() { 135 | public void actionPerformed(ActionEvent e) { 136 | AddAdmin obj=new AddAdmin(); 137 | obj.setVisible(true); 138 | } 139 | }); 140 | btnAddFaculty.setBounds(405, 345, 548, 166); 141 | contentPane.add(btnAddFaculty); 142 | 143 | JMenu mnNewMenu = new JMenu("Search"); 144 | mnNewMenu.setBounds(0, 39, 58, -32); 145 | contentPane.add(mnNewMenu); 146 | 147 | JLabel label = new JLabel(""); 148 | label.setBackground(Color.BLACK); 149 | label.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\why-you-should-read-and-re-read-these-high-school-books-as-an-adult (Custom).jpeg")); 150 | label.setBounds(0, 26, 1008, 536); 151 | contentPane.add(label); 152 | } 153 | } -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/Project/Admin/AdminLogin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.Color; 4 | 5 | import javax.swing.*; 6 | import java.awt.BorderLayout; 7 | import java.awt.EventQueue; 8 | import java.awt.Font; 9 | import java.awt.Toolkit; 10 | 11 | import javax.swing.border.EmptyBorder; 12 | 13 | import com.mysql.jdbc.Connection; 14 | import com.mysql.jdbc.PreparedStatement; 15 | 16 | import User.UserLogin; 17 | 18 | import java.awt.event.ActionListener; 19 | import java.sql.DriverManager; 20 | import java.sql.ResultSet; 21 | import java.awt.event.ActionEvent; 22 | import java.awt.Color; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AdminLogin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | private JTextField textField; 33 | private JPasswordField passwordField; 34 | private JButton btnNewButton; 35 | private JButton btnNewButton_1; 36 | private String user[]={"Soumyadip","Soumya"}; 37 | private String pass[]={"abcd","abcde"}; 38 | private JLabel lblNewLabel_1; 39 | private JLabel label; 40 | private JLabel label_1; 41 | 42 | 43 | public static void main(String[] args) { 44 | EventQueue.invokeLater(new Runnable() { 45 | public void run() { 46 | try { 47 | AdminLogin frame = new AdminLogin(); 48 | frame.setTitle("School Management System"); 49 | frame.setVisible(true); 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } 53 | } 54 | }); 55 | } 56 | 57 | 58 | public AdminLogin() { 59 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 60 | setBounds(450, 190, 1014, 597); 61 | setResizable(false); 62 | 63 | contentPane = new JPanel(); 64 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 65 | setContentPane(contentPane); 66 | contentPane.setLayout(null); 67 | 68 | JLabel lblNewLabel = new JLabel("Event Management Login"); 69 | lblNewLabel.setForeground(Color.BLACK); 70 | lblNewLabel.setFont(new Font("Times New Roman", Font.PLAIN, 46)); 71 | lblNewLabel.setBounds(308, 13, 504, 126); 72 | contentPane.add(lblNewLabel); 73 | 74 | textField = new JTextField(); 75 | textField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 76 | textField.setBounds(481, 170, 281, 68); 77 | contentPane.add(textField); 78 | textField.setColumns(10); 79 | 80 | passwordField = new JPasswordField(); 81 | passwordField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 82 | passwordField.setBounds(481, 286, 281, 68); 83 | contentPane.add(passwordField); 84 | 85 | JLabel lblUsername = new JLabel("Admin-ID"); 86 | lblUsername.setBackground(Color.BLACK); 87 | lblUsername.setForeground(Color.BLACK); 88 | lblUsername.setFont(new Font("Tahoma", Font.PLAIN, 31)); 89 | lblUsername.setBounds(250, 178, 193, 52); 90 | contentPane.add(lblUsername); 91 | 92 | JLabel lblPassword = new JLabel("Password"); 93 | lblPassword.setForeground(Color.BLACK); 94 | lblPassword.setBackground(Color.CYAN); 95 | lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 31)); 96 | lblPassword.setBounds(250, 286, 193, 52); 97 | contentPane.add(lblPassword); 98 | 99 | btnNewButton = new JButton("Login"); 100 | btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 31)); 101 | btnNewButton.setBounds(538, 392, 224, 73); 102 | btnNewButton.addActionListener(new ActionListener() { 103 | 104 | public void actionPerformed(ActionEvent e) { 105 | // TODO Auto-generated method stub 106 | int i=0,j=0; 107 | String ustr=textField.getText(); 108 | String pstr=passwordField.getText(); 109 | try{ 110 | System.out.println("add"); 111 | 112 | Class.forName("com.mysql.jdbc.Driver"); 113 | 114 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 115 | 116 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select user,pass from facult where user=? and pass=?"); 117 | 118 | st.setString(1,ustr); 119 | st.setString(2,pstr); 120 | ResultSet rs=st.executeQuery(); 121 | if(rs.next()) 122 | { 123 | 124 | i=1; 125 | } 126 | else{ 127 | 128 | i=0; 129 | } 130 | } 131 | catch(Exception w1) 132 | { 133 | System.out.println(w1); 134 | } 135 | 136 | if(i==1) 137 | { 138 | dispose(); 139 | AdminHome ah=new AdminHome(); 140 | ah.setTitle("Faculty Home"); 141 | ah.setVisible(true); 142 | JOptionPane.showMessageDialog(btnNewButton, "You have successfully logged in"); 143 | } 144 | else 145 | { 146 | JOptionPane.showMessageDialog(btnNewButton, "Wrong Username & Password"); 147 | } 148 | } 149 | }); 150 | 151 | contentPane.add(btnNewButton); 152 | 153 | btnNewButton_1 = new JButton("User Panel"); 154 | btnNewButton_1.addActionListener(new ActionListener() { 155 | public void actionPerformed(ActionEvent e) { 156 | dispose(); 157 | UserLogin us=new UserLogin(); 158 | us.setTitle("Student-Login"); 159 | us.setVisible(true); 160 | } 161 | }); 162 | btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 33)); 163 | btnNewButton_1.setBounds(250, 387, 262, 83); 164 | contentPane.add(btnNewButton_1); 165 | 166 | label_1 = new JLabel(""); 167 | // label_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\a11.jpg")); 168 | label_1.setBounds(0, 0, 1008, 562); 169 | contentPane.add(label_1); 170 | } 171 | 172 | } -------------------------------------------------------------------------------- /Event Management System Java-Using Swing-Mysql/Project/Admin/Home.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.EventQueue; 4 | import java.awt.List; 5 | import java.sql.DriverManager; 6 | import java.sql.ResultSet; 7 | 8 | import javax.swing.JButton; 9 | import javax.swing.JFrame; 10 | import javax.swing.JPanel; 11 | import javax.swing.JTable; 12 | import javax.swing.border.EmptyBorder; 13 | 14 | import com.mysql.jdbc.Connection; 15 | import com.mysql.jdbc.PreparedStatement; 16 | /** 17 | * 18 | * @author Soumyadip Chowdhury 19 | * @github soumyadip007 20 | * 21 | */ 22 | public class Home extends JFrame { 23 | 24 | private JPanel contentPane; 25 | private JTable table; 26 | 27 | /** 28 | * Launch the application. 29 | */ 30 | public static void main(String[] args) { 31 | 32 | 33 | EventQueue.invokeLater(new Runnable() { 34 | public void run() { 35 | try { 36 | Home frame = new Home(); 37 | frame.setVisible(true); 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | }); 43 | } 44 | 45 | /** 46 | * Create the frame. 47 | */ 48 | public Home() { 49 | // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 50 | setBounds(450, 319, 1014, 460); 51 | setResizable(false); 52 | 53 | contentPane = new JPanel(); 54 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 55 | setContentPane(contentPane); 56 | contentPane.setLayout(null); 57 | 58 | JButton btnNewButton = new JButton("New button"); 59 | btnNewButton.setBounds(490, 441, 97, 25); 60 | contentPane.add(btnNewButton); 61 | 62 | String[][] data =new String[100][2]; 63 | int i=0,j=0; 64 | List li1=new List(); 65 | List li2=new List(); 66 | List li3=new List(); 67 | List li4=new List(); 68 | List li5=new List(); 69 | List li6=new List(); 70 | List li7=new List(); 71 | List li8=new List(); 72 | // Column Names 73 | String[] columnNames = { "Name", "Department", }; 74 | 75 | // Initializing the JTable 76 | 77 | 78 | try{ 79 | System.out.println("add"); 80 | 81 | Class.forName("com.mysql.jdbc.Driver"); 82 | //System.out.println("add"); 83 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 84 | //System.out.println("add"); 85 | 86 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select name,class,section,roll,teach from stu"); 87 | //System.out.println("add"); 88 | //st.setString(7,city); 89 | 90 | ResultSet rs=st.executeQuery(); 91 | 92 | li1.add("|-----|Name|-----|"); 93 | 94 | li2.add("|-----|Class-Section-Roll-Teach|-----|"); 95 | 96 | while(rs.next()) 97 | { 98 | /*data[i][j]=rs.getString(1); 99 | j++; 100 | data[i][j]=rs.getString(2); 101 | //System.out.println(data[i][j]); 102 | i++;*/ 103 | li1.add(rs.getString(1)); 104 | i++; 105 | li2.add(rs.getString(2)+"-"+rs.getString(3)+"-"+rs.getString(4)+"-"+rs.getString(5)); 106 | 107 | } 108 | } 109 | catch(Exception e) 110 | { 111 | System.out.println(e); 112 | } 113 | String data1[][]=new String[i][i]; 114 | 115 | j=0; 116 | for (int k=0;k 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Feedback 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/Documents/Stadium Management System.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software/29cc9202e8db60cb94fdb8027269aae55b399bf9/Feedback Form Management System Java-Using Swing MySql/Documents/Stadium Management System.jar -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/Project/Admin/AddAdmin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.Font; 6 | import java.awt.event.ActionEvent; 7 | import java.awt.event.ActionListener; 8 | import java.sql.DriverManager; 9 | 10 | import javax.swing.ButtonGroup; 11 | import javax.swing.JButton; 12 | import javax.swing.JComboBox; 13 | import javax.swing.JFrame; 14 | import javax.swing.JLabel; 15 | import javax.swing.JOptionPane; 16 | import javax.swing.JPanel; 17 | import javax.swing.JRadioButton; 18 | import javax.swing.JTextArea; 19 | import javax.swing.border.EmptyBorder; 20 | 21 | import com.mysql.jdbc.Connection; 22 | import com.mysql.jdbc.PreparedStatement; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AddAdmin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | 33 | /** 34 | * Launch the application. 35 | */ 36 | public static void main(String[] args) { 37 | EventQueue.invokeLater(new Runnable() { 38 | public void run() { 39 | try { 40 | AddAdmin frame = new AddAdmin(); 41 | frame.setVisible(true); 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | }); 47 | } 48 | 49 | /** 50 | * Create the frame. 51 | */ 52 | public AddAdmin() { 53 | //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 54 | setBounds(450, 319, 1014, 460); 55 | setResizable(false); 56 | contentPane = new JPanel(); 57 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 58 | setContentPane(contentPane); 59 | contentPane.setLayout(null); 60 | 61 | 62 | 63 | JTextArea nm = new JTextArea(); 64 | nm.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 65 | nm.setBounds(280, 26, 688, 80); 66 | contentPane.add(nm); 67 | ButtonGroup btg=new ButtonGroup(); 68 | 69 | 70 | JTextArea sub = new JTextArea(); 71 | sub.setFont(new Font("Segoe UI", Font.PLAIN, 37)); 72 | sub.setBounds(280, 119, 688, 80); 73 | contentPane.add(sub); 74 | /** 75 | * 76 | * @author Soumyadip Chowdhury 77 | * @github soumyadip007 78 | * 79 | */ 80 | JLabel lblAdminName = new JLabel("Admin Name:"); 81 | lblAdminName.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 82 | lblAdminName.setBounds(32, 26, 285, 81); 83 | contentPane.add(lblAdminName); 84 | 85 | JTextArea idd = new JTextArea(); 86 | idd.setFont(new Font("Segoe UI", Font.PLAIN, 38)); 87 | idd.setBounds(280, 212, 688, 81); 88 | contentPane.add(idd); 89 | 90 | JLabel lblAdminId = new JLabel("Admin ID:"); 91 | lblAdminId.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 92 | lblAdminId.setBounds(32, 130, 285, 81); 93 | contentPane.add(lblAdminId); 94 | 95 | JLabel lblAdminEmail = new JLabel("Admin Email:"); 96 | lblAdminEmail.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 97 | lblAdminEmail.setBounds(32, 212, 285, 81); 98 | contentPane.add(lblAdminEmail); 99 | 100 | JButton btnNewButton = new JButton("Add"); 101 | btnNewButton.addActionListener(new ActionListener() { 102 | /* (non-Javadoc) 103 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) 104 | */ 105 | public void actionPerformed(ActionEvent e) { 106 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 107 | //JOptionPane.setRootFrame(null); 108 | if(a==JOptionPane.YES_OPTION){ 109 | 110 | String name1=nm.getText(); 111 | String sub1=sub.getText(); 112 | int j=0; 113 | String id1=idd.getText(); 114 | try{ 115 | System.out.println("add"); 116 | 117 | Class.forName("com.mysql.jdbc.Driver"); 118 | 119 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 120 | 121 | PreparedStatement st=(PreparedStatement) con.prepareStatement("INSERT INTO facult(name,user,email,pass) values(?,?,?,?)"); 122 | 123 | st.setString(1, name1); 124 | st.setString(2, id1); 125 | st.setString(3, sub1); 126 | st.setString(4, "UEMK"); 127 | 128 | 129 | j=st.executeUpdate(); 130 | 131 | } 132 | catch(Exception w1) 133 | { 134 | System.out.println(w1); 135 | } 136 | 137 | int i = 0; 138 | if(j==1) 139 | { 140 | String n="\n"; 141 | 142 | 143 | JOptionPane.showMessageDialog(btnNewButton,"Congratulations,"+n+"Events is added sucessfully"+n+"Thankyou."); 144 | } 145 | else 146 | { 147 | 148 | JOptionPane.showMessageDialog(btnNewButton,"Please,enter the informations"); 149 | } 150 | } 151 | 152 | } 153 | }); 154 | btnNewButton.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 155 | btnNewButton.setBounds(388, 320, 197, 80); 156 | contentPane.add(btnNewButton); 157 | 158 | 159 | } 160 | } -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/Project/Admin/AdminHome.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | 5 | /** 6 | * 7 | * @author Soumyadip Chowdhury 8 | * @github soumyadip007 9 | * 10 | */ 11 | import java.awt.EventQueue; 12 | import java.awt.Font; 13 | import java.awt.Toolkit; 14 | import java.awt.event.ActionEvent; 15 | import java.awt.event.ActionListener; 16 | import java.sql.DriverManager; 17 | import java.sql.ResultSet; 18 | 19 | import javax.swing.ImageIcon; 20 | import javax.swing.JButton; 21 | import javax.swing.JFrame; 22 | import javax.swing.JLabel; 23 | import javax.swing.JMenu; 24 | import javax.swing.JMenuBar; 25 | import javax.swing.JMenuItem; 26 | import javax.swing.JOptionPane; 27 | import javax.swing.JPanel; 28 | import javax.swing.border.EmptyBorder; 29 | 30 | import com.mysql.jdbc.Connection; 31 | import com.mysql.jdbc.PreparedStatement; 32 | 33 | import javax.swing.JTextArea; 34 | import java.awt.Color; 35 | import javax.swing.UIManager; 36 | public class AdminHome extends JFrame { 37 | 38 | private JPanel contentPane; 39 | private JFrame jf; 40 | 41 | /** 42 | * Launch the application. 43 | */ 44 | public static void main(String[] args) { 45 | EventQueue.invokeLater(new Runnable() { 46 | public void run() { 47 | try { 48 | AdminHome frame = new AdminHome(); 49 | frame.setVisible(true); 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } 53 | } 54 | }); 55 | } 56 | 57 | /** 58 | * Create the frame. 59 | */ 60 | public AdminHome() { 61 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 62 | 63 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 64 | setBounds(450, 190, 1014, 597); 65 | setResizable(false); 66 | contentPane = new JPanel(); 67 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 68 | setContentPane(contentPane); 69 | contentPane.setLayout(null); 70 | 71 | JMenuBar menuBar = new JMenuBar(); 72 | menuBar.setBounds(0, 0, 1008, 26); 73 | contentPane.add(menuBar); 74 | 75 | JMenu mnNewMenu_1 = new JMenu("Main Menu"); 76 | menuBar.add(mnNewMenu_1); 77 | 78 | JMenuItem mntmAddOldBooks = new JMenuItem("AddAdmin Events\r\n"); 79 | mntmAddOldBooks.addActionListener(new ActionListener() { 80 | public void actionPerformed(ActionEvent e) { 81 | Add obj=new Add(); 82 | obj.setVisible(true); 83 | } 84 | }); 85 | mnNewMenu_1.add(mntmAddOldBooks); 86 | 87 | JButton btnNewButton = new JButton("Log Out"); 88 | btnNewButton.addActionListener(new ActionListener() { 89 | public void actionPerformed(ActionEvent e) { 90 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 91 | //JOptionPane.setRootFrame(null); 92 | if(a==JOptionPane.YES_OPTION){ 93 | 94 | dispose(); 95 | AdminLogin ms=new AdminLogin(); 96 | ms.setTitle("Faculty Login"); 97 | ms.setVisible(true); 98 | } 99 | } 100 | }); 101 | btnNewButton.setBounds(899, 39, 97, 25); 102 | contentPane.add(btnNewButton); 103 | 104 | JButton btnAllEvents = new JButton("View Feedbacks"); 105 | btnAllEvents.setFont(new Font("Tahoma", Font.PLAIN, 65)); 106 | btnAllEvents.addActionListener(new ActionListener() { 107 | public void actionPerformed(ActionEvent e) { 108 | Home obj=new Home(); 109 | obj.setVisible(true); 110 | } 111 | }); 112 | btnAllEvents.setBounds(59, 88, 894, 236); 113 | contentPane.add(btnAllEvents); 114 | /** 115 | * 116 | * @author Soumyadip Chowdhury 117 | * @github soumyadip007 118 | * 119 | */ 120 | JButton btnAddFaculty = new JButton("Add Admin"); 121 | btnAddFaculty.setFont(new Font("Tahoma", Font.PLAIN, 48)); 122 | btnAddFaculty.addActionListener(new ActionListener() { 123 | public void actionPerformed(ActionEvent e) { 124 | AddAdmin obj=new AddAdmin(); 125 | obj.setVisible(true); 126 | } 127 | }); 128 | btnAddFaculty.setBounds(59, 345, 894, 166); 129 | contentPane.add(btnAddFaculty); 130 | 131 | JMenu mnNewMenu = new JMenu("Search"); 132 | mnNewMenu.setBounds(0, 39, 58, -32); 133 | contentPane.add(mnNewMenu); 134 | 135 | JLabel label = new JLabel(""); 136 | label.setBackground(Color.BLACK); 137 | label.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\why-you-should-read-and-re-read-these-high-school-books-as-an-adult (Custom).jpeg")); 138 | label.setBounds(0, 26, 1008, 536); 139 | contentPane.add(label); 140 | } 141 | } -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/Project/Admin/AdminLogin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.Color; 4 | 5 | import javax.swing.*; 6 | import java.awt.BorderLayout; 7 | import java.awt.EventQueue; 8 | import java.awt.Font; 9 | import java.awt.Toolkit; 10 | 11 | import javax.swing.border.EmptyBorder; 12 | 13 | import com.mysql.jdbc.Connection; 14 | import com.mysql.jdbc.PreparedStatement; 15 | 16 | import User.UserLogin; 17 | 18 | import java.awt.event.ActionListener; 19 | import java.sql.DriverManager; 20 | import java.sql.ResultSet; 21 | import java.awt.event.ActionEvent; 22 | import java.awt.Color; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AdminLogin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | private JTextField textField; 33 | private JPasswordField passwordField; 34 | private JButton btnNewButton; 35 | private JButton btnNewButton_1; 36 | private String user[]={"Soumyadip","Soumya"}; 37 | private String pass[]={"abcd","abcde"}; 38 | private JLabel lblNewLabel_1; 39 | private JLabel label; 40 | private JLabel label_1; 41 | 42 | 43 | public static void main(String[] args) { 44 | EventQueue.invokeLater(new Runnable() { 45 | public void run() { 46 | try { 47 | AdminLogin frame = new AdminLogin(); 48 | frame.setTitle("School Management System"); 49 | frame.setVisible(true); 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } 53 | } 54 | }); 55 | } 56 | 57 | 58 | public AdminLogin() { 59 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 60 | setBounds(450, 190, 1014, 597); 61 | setResizable(false); 62 | 63 | contentPane = new JPanel(); 64 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 65 | setContentPane(contentPane); 66 | contentPane.setLayout(null); 67 | 68 | JLabel lblNewLabel = new JLabel("Feedback Form Management Admin Login"); 69 | lblNewLabel.setForeground(Color.BLACK); 70 | lblNewLabel.setFont(new Font("Times New Roman", Font.PLAIN, 46)); 71 | lblNewLabel.setBounds(152, 13, 804, 126); 72 | contentPane.add(lblNewLabel); 73 | 74 | textField = new JTextField(); 75 | textField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 76 | textField.setBounds(481, 170, 281, 68); 77 | contentPane.add(textField); 78 | textField.setColumns(10); 79 | 80 | passwordField = new JPasswordField(); 81 | passwordField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 82 | passwordField.setBounds(481, 286, 281, 68); 83 | contentPane.add(passwordField); 84 | 85 | JLabel lblUsername = new JLabel("Admin-ID"); 86 | lblUsername.setBackground(Color.BLACK); 87 | lblUsername.setForeground(Color.BLACK); 88 | lblUsername.setFont(new Font("Tahoma", Font.PLAIN, 31)); 89 | lblUsername.setBounds(250, 178, 193, 52); 90 | contentPane.add(lblUsername); 91 | 92 | JLabel lblPassword = new JLabel("Password"); 93 | lblPassword.setForeground(Color.BLACK); 94 | lblPassword.setBackground(Color.CYAN); 95 | lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 31)); 96 | lblPassword.setBounds(250, 286, 193, 52); 97 | contentPane.add(lblPassword); 98 | 99 | btnNewButton = new JButton("Login"); 100 | btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 31)); 101 | btnNewButton.setBounds(538, 392, 224, 73); 102 | btnNewButton.addActionListener(new ActionListener() { 103 | 104 | public void actionPerformed(ActionEvent e) { 105 | // TODO Auto-generated method stub 106 | int i=0,j=0; 107 | String ustr=textField.getText(); 108 | String pstr=passwordField.getText(); 109 | try{ 110 | System.out.println("add"); 111 | 112 | Class.forName("com.mysql.jdbc.Driver"); 113 | 114 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 115 | 116 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select user,pass from facult where user=? and pass=?"); 117 | 118 | st.setString(1,ustr); 119 | st.setString(2,pstr); 120 | ResultSet rs=st.executeQuery(); 121 | if(rs.next()) 122 | { 123 | 124 | i=1; 125 | } 126 | else{ 127 | 128 | i=0; 129 | } 130 | } 131 | catch(Exception w1) 132 | { 133 | System.out.println(w1); 134 | } 135 | 136 | if(i==1) 137 | { 138 | dispose(); 139 | AdminHome ah=new AdminHome(); 140 | ah.setTitle("Faculty Home"); 141 | ah.setVisible(true); 142 | JOptionPane.showMessageDialog(btnNewButton, "You have successfully logged in"); 143 | } 144 | else 145 | { 146 | JOptionPane.showMessageDialog(btnNewButton, "Wrong Username & Password"); 147 | } 148 | } 149 | }); 150 | 151 | contentPane.add(btnNewButton); 152 | 153 | btnNewButton_1 = new JButton("User Panel"); 154 | btnNewButton_1.addActionListener(new ActionListener() { 155 | public void actionPerformed(ActionEvent e) { 156 | dispose(); 157 | UserLogin us=new UserLogin(); 158 | us.setTitle("Student-Login"); 159 | us.setVisible(true); 160 | } 161 | }); 162 | btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 33)); 163 | btnNewButton_1.setBounds(250, 387, 262, 83); 164 | contentPane.add(btnNewButton_1); 165 | 166 | label_1 = new JLabel(""); 167 | // label_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\a11.jpg")); 168 | label_1.setBounds(0, 0, 1008, 562); 169 | contentPane.add(label_1); 170 | } 171 | 172 | } -------------------------------------------------------------------------------- /Feedback Form Management System Java-Using Swing MySql/Project/Admin/Home.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.EventQueue; 4 | import java.awt.List; 5 | import java.sql.DriverManager; 6 | import java.sql.ResultSet; 7 | 8 | import javax.swing.JButton; 9 | import javax.swing.JFrame; 10 | import javax.swing.JPanel; 11 | import javax.swing.JTable; 12 | import javax.swing.border.EmptyBorder; 13 | 14 | import com.mysql.jdbc.Connection; 15 | import com.mysql.jdbc.PreparedStatement; 16 | /** 17 | * 18 | * @author Soumyadip Chowdhury 19 | * @github soumyadip007 20 | * 21 | */ 22 | public class Home extends JFrame { 23 | 24 | private JPanel contentPane; 25 | private JTable table; 26 | 27 | /** 28 | * Launch the application. 29 | */ 30 | public static void main(String[] args) { 31 | 32 | 33 | EventQueue.invokeLater(new Runnable() { 34 | public void run() { 35 | try { 36 | Home frame = new Home(); 37 | frame.setVisible(true); 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | }); 43 | } 44 | 45 | /** 46 | * Create the frame. 47 | */ 48 | public Home() { 49 | // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 50 | setBounds(450, 319, 1014, 460); 51 | setResizable(false); 52 | 53 | contentPane = new JPanel(); 54 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 55 | setContentPane(contentPane); 56 | contentPane.setLayout(null); 57 | 58 | JButton btnNewButton = new JButton("New button"); 59 | btnNewButton.setBounds(490, 441, 97, 25); 60 | contentPane.add(btnNewButton); 61 | 62 | String[][] data =new String[100][2]; 63 | int i=0,j=0; 64 | List li1=new List(); 65 | List li2=new List(); 66 | List li3=new List(); 67 | List li4=new List(); 68 | List li5=new List(); 69 | List li6=new List(); 70 | List li7=new List(); 71 | List li8=new List(); 72 | // Column Names 73 | String[] columnNames = { "Name", "Department", }; 74 | 75 | // Initializing the JTable 76 | 77 | 78 | try{ 79 | System.out.println("add"); 80 | 81 | Class.forName("com.mysql.jdbc.Driver"); 82 | //System.out.println("add"); 83 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 84 | //System.out.println("add"); 85 | 86 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select name,class,section,roll,teach from stu"); 87 | //System.out.println("add"); 88 | //st.setString(7,city); 89 | 90 | ResultSet rs=st.executeQuery(); 91 | 92 | li1.add("|-----|Name|-----|"); 93 | 94 | li2.add("|-----|Review-Rating-Email-Next Meetup|-----|"); 95 | 96 | while(rs.next()) 97 | { 98 | /*data[i][j]=rs.getString(1); 99 | j++; 100 | data[i][j]=rs.getString(2); 101 | //System.out.println(data[i][j]); 102 | i++;*/ 103 | li1.add(rs.getString(1)); 104 | i++; 105 | li2.add(rs.getString(2)+"-"+rs.getString(3)+"-"+rs.getString(4)+"-"+rs.getString(5)); 106 | 107 | } 108 | } 109 | catch(Exception e) 110 | { 111 | System.out.println(e); 112 | } 113 | String data1[][]=new String[i][i]; 114 | 115 | j=0; 116 | for (int k=0;k 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Jewellery Shop System Java-Using Swing-Mysql/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Shop 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Jewellery Shop System Java-Using Swing-Mysql/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Jewellery Shop System Java-Using Swing-Mysql/Project/Admin/Add_faculty.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.Font; 6 | import java.awt.event.ActionEvent; 7 | import java.awt.event.ActionListener; 8 | import java.sql.DriverManager; 9 | 10 | import javax.swing.ButtonGroup; 11 | import javax.swing.JButton; 12 | import javax.swing.JComboBox; 13 | import javax.swing.JFrame; 14 | import javax.swing.JLabel; 15 | import javax.swing.JOptionPane; 16 | import javax.swing.JPanel; 17 | import javax.swing.JRadioButton; 18 | import javax.swing.JTextArea; 19 | import javax.swing.border.EmptyBorder; 20 | 21 | import com.mysql.jdbc.Connection; 22 | import com.mysql.jdbc.PreparedStatement; 23 | 24 | public class Add_faculty extends JFrame { 25 | 26 | private JPanel contentPane; 27 | 28 | /** 29 | * Launch the application. 30 | */ 31 | public static void main(String[] args) { 32 | EventQueue.invokeLater(new Runnable() { 33 | public void run() { 34 | try { 35 | Add_faculty frame = new Add_faculty(); 36 | frame.setVisible(true); 37 | } catch (Exception e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | }); 42 | } 43 | 44 | /** 45 | * Create the frame. 46 | */ 47 | public Add_faculty() { 48 | //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 49 | setBounds(450, 319, 1014, 460); 50 | setResizable(false); 51 | contentPane = new JPanel(); 52 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 53 | setContentPane(contentPane); 54 | contentPane.setLayout(null); 55 | 56 | 57 | 58 | JTextArea nm = new JTextArea(); 59 | nm.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 60 | nm.setBounds(280, 26, 688, 80); 61 | contentPane.add(nm); 62 | ButtonGroup btg=new ButtonGroup(); 63 | 64 | 65 | JTextArea sub = new JTextArea(); 66 | sub.setFont(new Font("Segoe UI", Font.PLAIN, 37)); 67 | sub.setBounds(280, 119, 688, 80); 68 | contentPane.add(sub); 69 | 70 | JLabel label = new JLabel("Faculty Name"); 71 | label.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 72 | label.setBounds(32, 26, 285, 81); 73 | contentPane.add(label); 74 | 75 | JTextArea idd = new JTextArea(); 76 | idd.setFont(new Font("Segoe UI", Font.PLAIN, 38)); 77 | idd.setBounds(280, 212, 688, 81); 78 | contentPane.add(idd); 79 | 80 | JLabel label_1 = new JLabel("Subject/ Dept."); 81 | label_1.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 82 | label_1.setBounds(32, 130, 285, 81); 83 | contentPane.add(label_1); 84 | 85 | JLabel label_2 = new JLabel("Faculty ID.\r\n\r\n"); 86 | label_2.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 87 | label_2.setBounds(32, 212, 285, 81); 88 | contentPane.add(label_2); 89 | 90 | JButton btnNewButton = new JButton("Add"); 91 | btnNewButton.addActionListener(new ActionListener() { 92 | /* (non-Javadoc) 93 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) 94 | */ 95 | public void actionPerformed(ActionEvent e) { 96 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 97 | //JOptionPane.setRootFrame(null); 98 | if(a==JOptionPane.YES_OPTION){ 99 | 100 | String name1=nm.getText(); 101 | String sub1=sub.getText(); 102 | int j=0; 103 | String id1=idd.getText(); 104 | try{ 105 | System.out.println("add"); 106 | 107 | Class.forName("com.mysql.jdbc.Driver"); 108 | 109 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 110 | 111 | PreparedStatement st=(PreparedStatement) con.prepareStatement("INSERT INTO facult(name,user,sub,pass) values(?,?,?,?)"); 112 | 113 | st.setString(1, name1); 114 | st.setString(2, id1); 115 | st.setString(3, sub1); 116 | st.setString(4, "UEMK"); 117 | 118 | 119 | j=st.executeUpdate(); 120 | 121 | } 122 | catch(Exception w1) 123 | { 124 | System.out.println(w1); 125 | } 126 | 127 | int i = 0; 128 | if(j==1) 129 | { 130 | String n="\n"; 131 | 132 | 133 | JOptionPane.showMessageDialog(btnNewButton,"Congratulations,"+n+"Student is added sucessfully"+n+"Thankyou."); 134 | } 135 | else 136 | { 137 | 138 | JOptionPane.showMessageDialog(btnNewButton,"Please,enter the informations"); 139 | } 140 | } 141 | 142 | } 143 | }); 144 | btnNewButton.setFont(new Font("Segoe UI", Font.PLAIN, 30)); 145 | btnNewButton.setBounds(376, 318, 197, 80); 146 | contentPane.add(btnNewButton); 147 | 148 | 149 | } 150 | } -------------------------------------------------------------------------------- /Jewellery Shop System Java-Using Swing-Mysql/Project/Admin/AdminLogin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.Color; 4 | 5 | import javax.swing.*; 6 | import java.awt.BorderLayout; 7 | import java.awt.EventQueue; 8 | import java.awt.Font; 9 | import java.awt.Toolkit; 10 | 11 | import javax.swing.border.EmptyBorder; 12 | 13 | import com.mysql.jdbc.Connection; 14 | import com.mysql.jdbc.PreparedStatement; 15 | 16 | import User.UserLogin; 17 | 18 | import java.awt.event.ActionListener; 19 | import java.sql.DriverManager; 20 | import java.sql.ResultSet; 21 | import java.awt.event.ActionEvent; 22 | import java.awt.Color; 23 | 24 | public class AdminLogin extends JFrame { 25 | 26 | private JPanel contentPane; 27 | private JTextField textField; 28 | private JPasswordField passwordField; 29 | private JButton btnNewButton; 30 | private JButton btnNewButton_1; 31 | private String user[]={"Soumyadip","Soumya"}; 32 | private String pass[]={"abcd","abcde"}; 33 | private JLabel lblNewLabel_1; 34 | private JLabel label; 35 | private JLabel label_1; 36 | 37 | 38 | public static void main(String[] args) { 39 | EventQueue.invokeLater(new Runnable() { 40 | public void run() { 41 | try { 42 | AdminLogin frame = new AdminLogin(); 43 | frame.setTitle("School Management System"); 44 | frame.setVisible(true); 45 | } catch (Exception e) { 46 | e.printStackTrace(); 47 | } 48 | } 49 | }); 50 | } 51 | 52 | 53 | public AdminLogin() { 54 | //setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0.jpg")); 55 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 56 | setBounds(450, 190, 1014, 597); 57 | setResizable(false); 58 | 59 | contentPane = new JPanel(); 60 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 61 | setContentPane(contentPane); 62 | contentPane.setLayout(null); 63 | 64 | JLabel lblNewLabel = new JLabel("Faculty Login"); 65 | lblNewLabel.setForeground(Color.BLACK); 66 | lblNewLabel.setFont(new Font("Times New Roman", Font.PLAIN, 46)); 67 | lblNewLabel.setBounds(364, 13, 273, 93); 68 | contentPane.add(lblNewLabel); 69 | 70 | textField = new JTextField(); 71 | textField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 72 | textField.setBounds(481, 170, 281, 68); 73 | contentPane.add(textField); 74 | textField.setColumns(10); 75 | 76 | passwordField = new JPasswordField(); 77 | passwordField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 78 | passwordField.setBounds(481, 286, 281, 68); 79 | contentPane.add(passwordField); 80 | 81 | JLabel lblUsername = new JLabel("Faculty-ID"); 82 | lblUsername.setBackground(Color.BLACK); 83 | lblUsername.setForeground(Color.BLACK); 84 | lblUsername.setFont(new Font("Tahoma", Font.PLAIN, 31)); 85 | lblUsername.setBounds(250, 178, 193, 52); 86 | contentPane.add(lblUsername); 87 | 88 | JLabel lblPassword = new JLabel("Password"); 89 | lblPassword.setForeground(Color.BLACK); 90 | lblPassword.setBackground(Color.CYAN); 91 | lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 31)); 92 | lblPassword.setBounds(250, 286, 193, 52); 93 | contentPane.add(lblPassword); 94 | 95 | btnNewButton = new JButton("Login"); 96 | btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 26)); 97 | btnNewButton.setBounds(545, 392, 162, 73); 98 | btnNewButton.addActionListener(new ActionListener() { 99 | 100 | public void actionPerformed(ActionEvent e) { 101 | // TODO Auto-generated method stub 102 | int i=0,j=0; 103 | String ustr=textField.getText(); 104 | String pstr=passwordField.getText(); 105 | try{ 106 | System.out.println("add"); 107 | 108 | Class.forName("com.mysql.jdbc.Driver"); 109 | 110 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 111 | 112 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select user,pass from facult where user=? and pass=?"); 113 | 114 | st.setString(1,ustr); 115 | st.setString(2,pstr); 116 | ResultSet rs=st.executeQuery(); 117 | if(rs.next()) 118 | { 119 | 120 | i=1; 121 | } 122 | else{ 123 | 124 | i=0; 125 | } 126 | } 127 | catch(Exception w1) 128 | { 129 | System.out.println(w1); 130 | } 131 | 132 | if(i==1) 133 | { 134 | dispose(); 135 | AdminHome ah=new AdminHome(); 136 | ah.setTitle("Faculty Home"); 137 | ah.setVisible(true); 138 | JOptionPane.showMessageDialog(btnNewButton, "You have successfully logged in"); 139 | } 140 | else 141 | { 142 | JOptionPane.showMessageDialog(btnNewButton, "Wrong Username & Password"); 143 | } 144 | } 145 | }); 146 | 147 | contentPane.add(btnNewButton); 148 | 149 | btnNewButton_1 = new JButton("Student"); 150 | btnNewButton_1.addActionListener(new ActionListener() { 151 | public void actionPerformed(ActionEvent e) { 152 | dispose(); 153 | UserLogin us=new UserLogin(); 154 | us.setTitle("Student-Login"); 155 | us.setVisible(true); 156 | } 157 | }); 158 | btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 26)); 159 | btnNewButton_1.setBounds(250, 387, 193, 83); 160 | contentPane.add(btnNewButton_1); 161 | 162 | label_1 = new JLabel(""); 163 | // label_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\a11.jpg")); 164 | label_1.setBounds(0, 0, 1008, 562); 165 | contentPane.add(label_1); 166 | } 167 | 168 | } -------------------------------------------------------------------------------- /Jewellery Shop System Java-Using Swing-Mysql/Project/Admin/Home.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.List; 6 | import java.sql.DriverManager; 7 | import java.sql.ResultSet; 8 | import java.util.Arrays; 9 | 10 | import javax.swing.JFrame; 11 | import javax.swing.JPanel; 12 | import javax.swing.JScrollPane; 13 | import javax.swing.border.EmptyBorder; 14 | 15 | import com.mysql.jdbc.Connection; 16 | import com.mysql.jdbc.PreparedStatement; 17 | 18 | import javax.swing.JButton; 19 | import javax.swing.JTable; 20 | import javax.swing.JScrollBar; 21 | 22 | public class Home extends JFrame { 23 | 24 | private JPanel contentPane; 25 | private JTable table; 26 | 27 | /** 28 | * Launch the application. 29 | */ 30 | public static void main(String[] args) { 31 | 32 | 33 | EventQueue.invokeLater(new Runnable() { 34 | public void run() { 35 | try { 36 | Home frame = new Home(); 37 | frame.setVisible(true); 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | }); 43 | } 44 | 45 | /** 46 | * Create the frame. 47 | */ 48 | public Home() { 49 | // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 50 | setBounds(450, 319, 1014, 460); 51 | setResizable(false); 52 | 53 | contentPane = new JPanel(); 54 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 55 | setContentPane(contentPane); 56 | contentPane.setLayout(null); 57 | 58 | JButton btnNewButton = new JButton("New button"); 59 | btnNewButton.setBounds(490, 441, 97, 25); 60 | contentPane.add(btnNewButton); 61 | 62 | String[][] data =new String[100][2]; 63 | int i=0,j=0; 64 | List li1=new List(); 65 | List li2=new List(); 66 | List li3=new List(); 67 | List li4=new List(); 68 | List li5=new List(); 69 | List li6=new List(); 70 | List li7=new List(); 71 | List li8=new List(); 72 | // Column Names 73 | String[] columnNames = { "Name", "Department", }; 74 | 75 | // Initializing the JTable 76 | 77 | 78 | try{ 79 | System.out.println("add"); 80 | 81 | Class.forName("com.mysql.jdbc.Driver"); 82 | //System.out.println("add"); 83 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 84 | //System.out.println("add"); 85 | 86 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select name,class,section,roll,teach from stu"); 87 | //System.out.println("add"); 88 | //st.setString(7,city); 89 | 90 | ResultSet rs=st.executeQuery(); 91 | 92 | li1.add("|-----|Name|-----|"); 93 | 94 | li2.add("|-----|Class-Section-Roll-Teach|-----|"); 95 | 96 | while(rs.next()) 97 | { 98 | /*data[i][j]=rs.getString(1); 99 | j++; 100 | data[i][j]=rs.getString(2); 101 | //System.out.println(data[i][j]); 102 | i++;*/ 103 | li1.add(rs.getString(1)); 104 | i++; 105 | li2.add(rs.getString(2)+"-"+rs.getString(3)+"-"+rs.getString(4)+"-"+rs.getString(5)); 106 | 107 | } 108 | } 109 | catch(Exception e) 110 | { 111 | System.out.println(e); 112 | } 113 | String data1[][]=new String[i][i]; 114 | 115 | j=0; 116 | for (int k=0;kOpen Perspective->Other->Java (default) 21 | 22 | # Software Output 23 | 24 | # ------------------------Realtime Chatbot----------------------- 25 | 26 | 27 | 28 | # ------------------------Calculator------------------------ 29 | 30 |
31 | 32 | 33 | 34 | # #Java Software (AWT/Swing/JavaFx/JDBC) 35 | 36 | - [Java Swing 4 Projects Book selling system,Stadium Management,Chatbot etc](https://github.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software) 37 | 38 | - [School Management System Software](https://github.com/soumyadip007/School-Management-System-GUI-Software-Using-Java-Swing-AWT-JDBC-JTatoo-MySql) 39 | 40 | - [Java Swing Complete tutorial with example for JavaGuides.net](https://github.com/soumyadip007/Java-Swing-tutorials-and-examples-for-JavaGuides.net) 41 | 42 | 43 | # #J2EE (JSP/Servlet/JSTL/JDBC Projects) 44 | 45 | - [E-Market Place OLX-Clone](https://github.com/soumyadip007/E-Marketplace-for-buying-and-reselling-products-Web-Project-Using-JSP-Servlet-Jstl-Security-Jdbc) 46 | 47 | - [Startup Company Live Website](https://soumyadip007.github.io/Coding_Liquids-StartUp-Company-Live-Website-Using-JSP-Servlet-JSTL-Security-JDBC-MD5-MySql-Bootstrap/) 48 | 49 | - [Post-Disaster Management & Women Safety Project](https://github.com/soumyadip007/Post-Disaster-Management-and-Women-safety-Hackathon-JSP-Servlet-MySql-Bootstrap-GoogleMapApi-OSM) 50 | 51 | - [Aim-India-Foundation-NGO-Live-Website](Aim-India-Foundation-WebDev-Internship-Using-Jsp-Servlet-Jstl-Jdbc-MySql-Bootstrap) 52 | 53 | - *https://Lightningspeedmatchmaker.com* (in Private repo for security/commercial purposes,USA project) 54 | 55 | 56 | # #Spring & Hibernte (Codes & Projects) 57 | 58 | - [Spring-Core-XML-Data-Dependency-BeanScope-BeanLifecycle](https://github.com/soumyadip007/Spring-Core-XML-Data-Dependency-BeanScope-BeanLifecycle) 59 | 60 | - [Spring-Core-Annotation](https://github.com/soumyadip007/Spring-Core-Annotation-BeanScope-BeanLifecycle) 61 | 62 | - [Hibernate-ORM (All)](https://github.com/soumyadip007/Hibernate-ORM-Entity-Relations) 63 | 64 | - [Spring-MVC-Request-Mapping-Validation](https://github.com/soumyadip007/Spring-MVC-Request-Mapping-Validation) 65 | 66 | - [Customer-Tracker-CURD-Application-Using-Spring-MVC-Hibernate (Mini-Project)](https://github.com/soumyadip007/Customer-Tracker-CURD-Application-Using-Spring-MVC-Hibernate) 67 | 68 | - [Spring-Security-User-Login-Authentication-Application-JDBC-Bcrypt](https://github.com/soumyadip007/Spring-Security-User-Login-Authentication-Application-JDBC-Bcrypt) 69 | 70 | - [Spring-Security-Authentication-System-Registration-Login-with-OTP-Token-and-Email-verification (Mini Project)](https://github.com/soumyadip007/Spring-Security-Authentication-System-Reg-Login-with-OTP-Token-and-Email-verification) 71 | 72 | - [SpringRest-Restfull-Webserices-Jackson-Json-Data-Binding-MVC](https://github.com/soumyadip007/Spring-Rest-Jackson-Json-Data-Binding) 73 | 74 | - [Customer-Relationship-Management-Real-time-CURD-Application-using-Spring-Rest-Json-HQL-WebServices-MVC (Mini Project)](https://github.com/soumyadip007/Customer-Relationship-Management-Real-time-CURD-Application-using-Spring-Rest-Json-HQL-WebServices) 75 | 76 | - [Spring-Boot-with-Restfull-Webservices-Json-Hibernate-JPA-Spring-Data](https://github.com/soumyadip007/Spring-Boot-with-Rest-Json-Hibernate-JPA-SpringDataJPA) 77 | 78 | - [Employee-Relationship-CURD-Application-using-Spring-Boot-Thymeleaf-Hibernate-JPA-MVC (Mini Project)](https://github.com/soumyadip007/Employee-Relationship-CURD-Application-using-Spring-Boot-Thymeleaf-Hibernate-JPA-MVC) 79 | 80 | - [E-Medical-System (Project)](https://github.com/soumyadip007/E-Medical-System-Web-Project-Using-Spring-Boot-Security-MVC-Hibernate-JPA-Rest-Thymeleaf-HQL) 81 | 82 | - [SpringBoot-Angular8-Login-Registration](https://github.com/soumyadip007/SpringBoot-Angular8-Login-Registration-for-JavaGuides.net) 83 | i 84 | - *Pujo Direction* (Android/WEB(Spring Boot, MVC, REST, Security, Hibernate, JPA, Thymeleaf) http://pujodir.cloudjiffy.net/Pujo-Direction(App Store)) (in Private repo for security purposes) 85 | 86 | # #Angular8 (Codes & Projects) 87 | 88 | - [Angular8-Data-Event-Binding-Directives-Pipes-Form-Validation-Security-HTTP-Service-Routing](https://github.com/soumyadip007/Angular-8-Data-Event-Binding-Directives-Pipes-Form-Validation-Security-HTTP-Service-Routing) 89 | 90 | - [Angular-Firebase-CURD-Application](https://github.com/soumyadip007/Angular-Firebase-CURD) 91 | 92 | - [Angular8-Authentication-and-Authorization-JSON-JWT (Security)](https://github.com/soumyadip007/Angular-8-Authentication-and-Authorization-JSON-JWT) 93 | 94 | - [Angular8 & Redux](https://github.com/soumyadip007/Angular-8-Redux) 95 | 96 | - [Shopping-Cart-System-using-Angular-8-Auth-Module-Firebase (Mini Project)](https://github.com/soumyadip007/Shopping-Cart-System-using-Angular-8-Auth-Module-Firebase) 97 | 98 | - [SpringBoot-Angular8-Login-Registration](https://github.com/soumyadip007/SpringBoot-Angular8-Login-Registration-for-JavaGuides.net) 99 | 100 | # #Other Works 101 | 102 | - [DBJ.jar (Framework for JDBC/On progress)](https://github.com/soumyadip007/DBJ.jar) 103 | 104 | - [Ofline Route Builder & DTN (On progress)](https://github.com/soumyadip007/Offline-Route-Builder-DTN-Messenger-Android-GPS-OSM) 105 | 106 | # #Wiki: https://github.com/soumyadip007/E-Medical-System-Web-Project-Using-Spring-Boot-Security-MVC-Hibernate-JPA-Rest-Thymeleaf-HQL/wiki 107 | 108 | -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | RailwayTicket 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/Documents/Stadium Management System.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software/29cc9202e8db60cb94fdb8027269aae55b399bf9/Railway Ticket Booking System Java-Using Swing-Mysql/Documents/Stadium Management System.jar -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/Project/Admin/AddAdmin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.Font; 6 | import java.awt.event.ActionEvent; 7 | import java.awt.event.ActionListener; 8 | import java.sql.DriverManager; 9 | 10 | import javax.swing.ButtonGroup; 11 | import javax.swing.JButton; 12 | import javax.swing.JComboBox; 13 | import javax.swing.JFrame; 14 | import javax.swing.JLabel; 15 | import javax.swing.JOptionPane; 16 | import javax.swing.JPanel; 17 | import javax.swing.JRadioButton; 18 | import javax.swing.JTextArea; 19 | import javax.swing.border.EmptyBorder; 20 | 21 | import com.mysql.jdbc.Connection; 22 | import com.mysql.jdbc.PreparedStatement; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AddAdmin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | 33 | /** 34 | * Launch the application. 35 | */ 36 | public static void main(String[] args) { 37 | EventQueue.invokeLater(new Runnable() { 38 | public void run() { 39 | try { 40 | AddAdmin frame = new AddAdmin(); 41 | frame.setVisible(true); 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | }); 47 | } 48 | 49 | /** 50 | * Create the frame. 51 | */ 52 | public AddAdmin() { 53 | //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 54 | setBounds(450, 319, 1014, 460); 55 | setResizable(false); 56 | contentPane = new JPanel(); 57 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 58 | setContentPane(contentPane); 59 | contentPane.setLayout(null); 60 | 61 | 62 | 63 | JTextArea nm = new JTextArea(); 64 | nm.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 65 | nm.setBounds(280, 26, 688, 80); 66 | contentPane.add(nm); 67 | ButtonGroup btg=new ButtonGroup(); 68 | 69 | 70 | JTextArea sub = new JTextArea(); 71 | sub.setFont(new Font("Segoe UI", Font.PLAIN, 37)); 72 | sub.setBounds(280, 119, 688, 80); 73 | contentPane.add(sub); 74 | /** 75 | * 76 | * @author Soumyadip Chowdhury 77 | * @github soumyadip007 78 | * 79 | */ 80 | JLabel lblAdminName = new JLabel("Admin Name:"); 81 | lblAdminName.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 82 | lblAdminName.setBounds(32, 26, 285, 81); 83 | contentPane.add(lblAdminName); 84 | 85 | JTextArea idd = new JTextArea(); 86 | idd.setFont(new Font("Segoe UI", Font.PLAIN, 38)); 87 | idd.setBounds(280, 212, 688, 81); 88 | contentPane.add(idd); 89 | 90 | JLabel lblAdminId = new JLabel("Admin ID:"); 91 | lblAdminId.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 92 | lblAdminId.setBounds(32, 130, 285, 81); 93 | contentPane.add(lblAdminId); 94 | 95 | JLabel lblAdminEmail = new JLabel("Admin Email:"); 96 | lblAdminEmail.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 97 | lblAdminEmail.setBounds(32, 212, 285, 81); 98 | contentPane.add(lblAdminEmail); 99 | 100 | JButton btnNewButton = new JButton("Add"); 101 | btnNewButton.addActionListener(new ActionListener() { 102 | /* (non-Javadoc) 103 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) 104 | */ 105 | public void actionPerformed(ActionEvent e) { 106 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 107 | //JOptionPane.setRootFrame(null); 108 | if(a==JOptionPane.YES_OPTION){ 109 | 110 | String name1=nm.getText(); 111 | String sub1=sub.getText(); 112 | int j=0; 113 | String id1=idd.getText(); 114 | try{ 115 | System.out.println("add"); 116 | 117 | Class.forName("com.mysql.jdbc.Driver"); 118 | 119 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 120 | 121 | PreparedStatement st=(PreparedStatement) con.prepareStatement("INSERT INTO facult(name,user,email,pass) values(?,?,?,?)"); 122 | 123 | st.setString(1, name1); 124 | st.setString(2, id1); 125 | st.setString(3, sub1); 126 | st.setString(4, "UEMK"); 127 | 128 | 129 | j=st.executeUpdate(); 130 | 131 | } 132 | catch(Exception w1) 133 | { 134 | System.out.println(w1); 135 | } 136 | 137 | int i = 0; 138 | if(j==1) 139 | { 140 | String n="\n"; 141 | 142 | 143 | JOptionPane.showMessageDialog(btnNewButton,"Congratulations,"+n+"Events is added sucessfully"+n+"Thankyou."); 144 | } 145 | else 146 | { 147 | 148 | JOptionPane.showMessageDialog(btnNewButton,"Please,enter the informations"); 149 | } 150 | } 151 | 152 | } 153 | }); 154 | btnNewButton.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 155 | btnNewButton.setBounds(388, 320, 197, 80); 156 | contentPane.add(btnNewButton); 157 | 158 | 159 | } 160 | } -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/Project/Admin/AdminHome.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | 5 | /** 6 | * 7 | * @author Soumyadip Chowdhury 8 | * @github soumyadip007 9 | * 10 | */ 11 | import java.awt.EventQueue; 12 | import java.awt.Font; 13 | import java.awt.Toolkit; 14 | import java.awt.event.ActionEvent; 15 | import java.awt.event.ActionListener; 16 | import java.sql.DriverManager; 17 | import java.sql.ResultSet; 18 | 19 | import javax.swing.ImageIcon; 20 | import javax.swing.JButton; 21 | import javax.swing.JFrame; 22 | import javax.swing.JLabel; 23 | import javax.swing.JMenu; 24 | import javax.swing.JMenuBar; 25 | import javax.swing.JMenuItem; 26 | import javax.swing.JOptionPane; 27 | import javax.swing.JPanel; 28 | import javax.swing.border.EmptyBorder; 29 | 30 | import com.mysql.jdbc.Connection; 31 | import com.mysql.jdbc.PreparedStatement; 32 | 33 | import javax.swing.JTextArea; 34 | import java.awt.Color; 35 | import javax.swing.UIManager; 36 | public class AdminHome extends JFrame { 37 | 38 | private JPanel contentPane; 39 | private JFrame jf; 40 | 41 | /** 42 | * Launch the application. 43 | */ 44 | public static void main(String[] args) { 45 | EventQueue.invokeLater(new Runnable() { 46 | public void run() { 47 | try { 48 | AdminHome frame = new AdminHome(); 49 | frame.setVisible(true); 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } 53 | } 54 | }); 55 | } 56 | 57 | /** 58 | * Create the frame. 59 | */ 60 | public AdminHome() { 61 | setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg")); 62 | 63 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 64 | setBounds(450, 190, 1014, 597); 65 | setResizable(false); 66 | contentPane = new JPanel(); 67 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 68 | setContentPane(contentPane); 69 | contentPane.setLayout(null); 70 | 71 | JMenuBar menuBar = new JMenuBar(); 72 | menuBar.setBounds(0, 0, 1008, 26); 73 | contentPane.add(menuBar); 74 | 75 | JMenu mnNewMenu_1 = new JMenu("Main Menu"); 76 | menuBar.add(mnNewMenu_1); 77 | 78 | JMenuItem mntmAddOldBooks = new JMenuItem("AddAdmin Events\r\n"); 79 | mntmAddOldBooks.addActionListener(new ActionListener() { 80 | public void actionPerformed(ActionEvent e) { 81 | Add obj=new Add(); 82 | obj.setVisible(true); 83 | } 84 | }); 85 | mnNewMenu_1.add(mntmAddOldBooks); 86 | 87 | JButton btnNewButton = new JButton("Log Out"); 88 | btnNewButton.addActionListener(new ActionListener() { 89 | public void actionPerformed(ActionEvent e) { 90 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 91 | //JOptionPane.setRootFrame(null); 92 | if(a==JOptionPane.YES_OPTION){ 93 | 94 | dispose(); 95 | AdminLogin ms=new AdminLogin(); 96 | ms.setTitle("Faculty Login"); 97 | ms.setVisible(true); 98 | } 99 | } 100 | }); 101 | btnNewButton.setBounds(899, 39, 97, 25); 102 | contentPane.add(btnNewButton); 103 | 104 | JButton btnAllEvents = new JButton("See All Bookings"); 105 | btnAllEvents.setFont(new Font("Tahoma", Font.PLAIN, 65)); 106 | btnAllEvents.addActionListener(new ActionListener() { 107 | public void actionPerformed(ActionEvent e) { 108 | Home obj=new Home(); 109 | obj.setVisible(true); 110 | } 111 | }); 112 | btnAllEvents.setBounds(41, 88, 912, 236); 113 | contentPane.add(btnAllEvents); 114 | /** 115 | * 116 | * @author Soumyadip Chowdhury 117 | * @github soumyadip007 118 | * 119 | */ 120 | JButton btnAddFaculty = new JButton("Add Railway Manager"); 121 | btnAddFaculty.setFont(new Font("Tahoma", Font.PLAIN, 48)); 122 | btnAddFaculty.addActionListener(new ActionListener() { 123 | public void actionPerformed(ActionEvent e) { 124 | AddAdmin obj=new AddAdmin(); 125 | obj.setVisible(true); 126 | } 127 | }); 128 | btnAddFaculty.setBounds(41, 345, 912, 166); 129 | contentPane.add(btnAddFaculty); 130 | 131 | JMenu mnNewMenu = new JMenu("Search"); 132 | mnNewMenu.setBounds(0, 39, 58, -32); 133 | contentPane.add(mnNewMenu); 134 | 135 | JLabel label = new JLabel(""); 136 | label.setBackground(Color.BLACK); 137 | label.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\why-you-should-read-and-re-read-these-high-school-books-as-an-adult (Custom).jpeg")); 138 | label.setBounds(0, 26, 1008, 536); 139 | contentPane.add(label); 140 | } 141 | } -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/Project/Admin/AdminLogin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.Color; 4 | 5 | import javax.swing.*; 6 | import java.awt.BorderLayout; 7 | import java.awt.EventQueue; 8 | import java.awt.Font; 9 | import java.awt.Toolkit; 10 | 11 | import javax.swing.border.EmptyBorder; 12 | 13 | import com.mysql.jdbc.Connection; 14 | import com.mysql.jdbc.PreparedStatement; 15 | 16 | import User.UserLogin; 17 | 18 | import java.awt.event.ActionListener; 19 | import java.sql.DriverManager; 20 | import java.sql.ResultSet; 21 | import java.awt.event.ActionEvent; 22 | import java.awt.Color; 23 | /** 24 | * 25 | * @author Soumyadip Chowdhury 26 | * @github soumyadip007 27 | * 28 | */ 29 | public class AdminLogin extends JFrame { 30 | 31 | private JPanel contentPane; 32 | private JTextField textField; 33 | private JPasswordField passwordField; 34 | private JButton btnNewButton; 35 | private JButton btnNewButton_1; 36 | private String user[]={"Soumyadip","Soumya"}; 37 | private String pass[]={"abcd","abcde"}; 38 | private JLabel lblNewLabel_1; 39 | private JLabel label; 40 | private JLabel label_1; 41 | 42 | 43 | public static void main(String[] args) { 44 | EventQueue.invokeLater(new Runnable() { 45 | public void run() { 46 | try { 47 | AdminLogin frame = new AdminLogin(); 48 | frame.setTitle("School Management System"); 49 | frame.setVisible(true); 50 | } catch (Exception e) { 51 | e.printStackTrace(); 52 | } 53 | } 54 | }); 55 | } 56 | 57 | 58 | public AdminLogin() { 59 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 60 | setBounds(450, 190, 1014, 597); 61 | setResizable(false); 62 | 63 | contentPane = new JPanel(); 64 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 65 | setContentPane(contentPane); 66 | contentPane.setLayout(null); 67 | 68 | JLabel lblNewLabel = new JLabel("Railway Reservation Admin Login"); 69 | lblNewLabel.setForeground(Color.BLACK); 70 | lblNewLabel.setFont(new Font("Times New Roman", Font.PLAIN, 46)); 71 | lblNewLabel.setBounds(235, 13, 689, 126); 72 | contentPane.add(lblNewLabel); 73 | 74 | textField = new JTextField(); 75 | textField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 76 | textField.setBounds(481, 170, 281, 68); 77 | contentPane.add(textField); 78 | textField.setColumns(10); 79 | 80 | passwordField = new JPasswordField(); 81 | passwordField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 82 | passwordField.setBounds(481, 286, 281, 68); 83 | contentPane.add(passwordField); 84 | 85 | JLabel lblUsername = new JLabel("Admin-ID"); 86 | lblUsername.setBackground(Color.BLACK); 87 | lblUsername.setForeground(Color.BLACK); 88 | lblUsername.setFont(new Font("Tahoma", Font.PLAIN, 31)); 89 | lblUsername.setBounds(250, 178, 193, 52); 90 | contentPane.add(lblUsername); 91 | 92 | JLabel lblPassword = new JLabel("Password"); 93 | lblPassword.setForeground(Color.BLACK); 94 | lblPassword.setBackground(Color.CYAN); 95 | lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 31)); 96 | lblPassword.setBounds(250, 286, 193, 52); 97 | contentPane.add(lblPassword); 98 | 99 | btnNewButton = new JButton("Login"); 100 | btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 31)); 101 | btnNewButton.setBounds(538, 392, 224, 73); 102 | btnNewButton.addActionListener(new ActionListener() { 103 | 104 | public void actionPerformed(ActionEvent e) { 105 | // TODO Auto-generated method stub 106 | int i=0,j=0; 107 | String ustr=textField.getText(); 108 | String pstr=passwordField.getText(); 109 | try{ 110 | System.out.println("add"); 111 | 112 | Class.forName("com.mysql.jdbc.Driver"); 113 | 114 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 115 | 116 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select user,pass from facult where user=? and pass=?"); 117 | 118 | st.setString(1,ustr); 119 | st.setString(2,pstr); 120 | ResultSet rs=st.executeQuery(); 121 | if(rs.next()) 122 | { 123 | 124 | i=1; 125 | } 126 | else{ 127 | 128 | i=0; 129 | } 130 | } 131 | catch(Exception w1) 132 | { 133 | System.out.println(w1); 134 | } 135 | 136 | if(i==1) 137 | { 138 | dispose(); 139 | AdminHome ah=new AdminHome(); 140 | ah.setTitle("Faculty Home"); 141 | ah.setVisible(true); 142 | JOptionPane.showMessageDialog(btnNewButton, "You have successfully logged in"); 143 | } 144 | else 145 | { 146 | JOptionPane.showMessageDialog(btnNewButton, "Wrong Username & Password"); 147 | } 148 | } 149 | }); 150 | 151 | contentPane.add(btnNewButton); 152 | 153 | btnNewButton_1 = new JButton("User Panel"); 154 | btnNewButton_1.addActionListener(new ActionListener() { 155 | public void actionPerformed(ActionEvent e) { 156 | dispose(); 157 | UserLogin us=new UserLogin(); 158 | us.setTitle("Student-Login"); 159 | us.setVisible(true); 160 | } 161 | }); 162 | btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 33)); 163 | btnNewButton_1.setBounds(250, 387, 262, 83); 164 | contentPane.add(btnNewButton_1); 165 | 166 | label_1 = new JLabel(""); 167 | // label_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\a11.jpg")); 168 | label_1.setBounds(0, 0, 1008, 562); 169 | contentPane.add(label_1); 170 | } 171 | 172 | } -------------------------------------------------------------------------------- /Railway Ticket Booking System Java-Using Swing-Mysql/Project/Admin/Home.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.EventQueue; 4 | import java.awt.List; 5 | import java.sql.DriverManager; 6 | import java.sql.ResultSet; 7 | 8 | import javax.swing.JButton; 9 | import javax.swing.JFrame; 10 | import javax.swing.JPanel; 11 | import javax.swing.JTable; 12 | import javax.swing.border.EmptyBorder; 13 | 14 | import com.mysql.jdbc.Connection; 15 | import com.mysql.jdbc.PreparedStatement; 16 | /** 17 | * 18 | * @author Soumyadip Chowdhury 19 | * @github soumyadip007 20 | * 21 | */ 22 | public class Home extends JFrame { 23 | 24 | private JPanel contentPane; 25 | private JTable table; 26 | 27 | /** 28 | * Launch the application. 29 | */ 30 | public static void main(String[] args) { 31 | 32 | 33 | EventQueue.invokeLater(new Runnable() { 34 | public void run() { 35 | try { 36 | Home frame = new Home(); 37 | frame.setVisible(true); 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | }); 43 | } 44 | 45 | /** 46 | * Create the frame. 47 | */ 48 | public Home() { 49 | // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 50 | setBounds(450, 319, 1014, 460); 51 | setResizable(false); 52 | 53 | contentPane = new JPanel(); 54 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 55 | setContentPane(contentPane); 56 | contentPane.setLayout(null); 57 | 58 | JButton btnNewButton = new JButton("New button"); 59 | btnNewButton.setBounds(490, 441, 97, 25); 60 | contentPane.add(btnNewButton); 61 | 62 | String[][] data =new String[100][2]; 63 | int i=0,j=0; 64 | List li1=new List(); 65 | List li2=new List(); 66 | List li3=new List(); 67 | List li4=new List(); 68 | List li5=new List(); 69 | List li6=new List(); 70 | List li7=new List(); 71 | List li8=new List(); 72 | // Column Names 73 | String[] columnNames = { "Name", "Department", }; 74 | 75 | // Initializing the JTable 76 | 77 | 78 | try{ 79 | System.out.println("add"); 80 | 81 | Class.forName("com.mysql.jdbc.Driver"); 82 | //System.out.println("add"); 83 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 84 | //System.out.println("add"); 85 | 86 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select name,class,section,roll,teach from stu"); 87 | //System.out.println("add"); 88 | //st.setString(7,city); 89 | 90 | ResultSet rs=st.executeQuery(); 91 | 92 | li1.add("|-----|Name|-----|"); 93 | 94 | li2.add("|-----|Destination-ID-Time-From|-----|"); 95 | 96 | while(rs.next()) 97 | { 98 | /*data[i][j]=rs.getString(1); 99 | j++; 100 | data[i][j]=rs.getString(2); 101 | //System.out.println(data[i][j]); 102 | i++;*/ 103 | li1.add(rs.getString(1)); 104 | i++; 105 | li2.add(rs.getString(2)+"-"+rs.getString(3)+"-"+rs.getString(4)+"-"+rs.getString(5)); 106 | 107 | } 108 | } 109 | catch(Exception e) 110 | { 111 | System.out.println(e); 112 | } 113 | String data1[][]=new String[i][i]; 114 | 115 | j=0; 116 | for (int k=0;k 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /School Management System Java-Using Swing-Mysql/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /School Management System Java-Using Swing-Mysql/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | School Management System Java-Swing 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /School Management System Java-Using Swing-Mysql/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /School Management System Java-Using Swing-Mysql/Documents/Stadium Management System.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soumyadip007/Java-JavaFx-Swing-Projects-Desktop-Application-GUI-Software/29cc9202e8db60cb94fdb8027269aae55b399bf9/School Management System Java-Using Swing-Mysql/Documents/Stadium Management System.jar -------------------------------------------------------------------------------- /School Management System Java-Using Swing-Mysql/Project/Admin/Add_faculty.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.BorderLayout; 4 | import java.awt.EventQueue; 5 | import java.awt.Font; 6 | import java.awt.event.ActionEvent; 7 | import java.awt.event.ActionListener; 8 | import java.sql.DriverManager; 9 | 10 | import javax.swing.ButtonGroup; 11 | import javax.swing.JButton; 12 | import javax.swing.JComboBox; 13 | import javax.swing.JFrame; 14 | import javax.swing.JLabel; 15 | import javax.swing.JOptionPane; 16 | import javax.swing.JPanel; 17 | import javax.swing.JRadioButton; 18 | import javax.swing.JTextArea; 19 | import javax.swing.border.EmptyBorder; 20 | 21 | import com.mysql.jdbc.Connection; 22 | import com.mysql.jdbc.PreparedStatement; 23 | 24 | public class Add_faculty extends JFrame { 25 | 26 | private JPanel contentPane; 27 | 28 | /** 29 | * Launch the application. 30 | */ 31 | public static void main(String[] args) { 32 | EventQueue.invokeLater(new Runnable() { 33 | public void run() { 34 | try { 35 | Add_faculty frame = new Add_faculty(); 36 | frame.setVisible(true); 37 | } catch (Exception e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | }); 42 | } 43 | 44 | /** 45 | * Create the frame. 46 | */ 47 | public Add_faculty() { 48 | //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 49 | setBounds(450, 319, 1014, 460); 50 | setResizable(false); 51 | contentPane = new JPanel(); 52 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 53 | setContentPane(contentPane); 54 | contentPane.setLayout(null); 55 | 56 | 57 | 58 | JTextArea nm = new JTextArea(); 59 | nm.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 60 | nm.setBounds(280, 26, 688, 80); 61 | contentPane.add(nm); 62 | ButtonGroup btg=new ButtonGroup(); 63 | 64 | 65 | JTextArea sub = new JTextArea(); 66 | sub.setFont(new Font("Segoe UI", Font.PLAIN, 37)); 67 | sub.setBounds(280, 119, 688, 80); 68 | contentPane.add(sub); 69 | 70 | JLabel label = new JLabel("Faculty Name"); 71 | label.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 72 | label.setBounds(32, 26, 285, 81); 73 | contentPane.add(label); 74 | 75 | JTextArea idd = new JTextArea(); 76 | idd.setFont(new Font("Segoe UI", Font.PLAIN, 38)); 77 | idd.setBounds(280, 212, 688, 81); 78 | contentPane.add(idd); 79 | 80 | JLabel label_1 = new JLabel("Subject/ Dept."); 81 | label_1.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 82 | label_1.setBounds(32, 130, 285, 81); 83 | contentPane.add(label_1); 84 | 85 | JLabel label_2 = new JLabel("Faculty ID.\r\n\r\n"); 86 | label_2.setFont(new Font("Segoe UI", Font.PLAIN, 35)); 87 | label_2.setBounds(32, 212, 285, 81); 88 | contentPane.add(label_2); 89 | 90 | JButton btnNewButton = new JButton("Add"); 91 | btnNewButton.addActionListener(new ActionListener() { 92 | /* (non-Javadoc) 93 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) 94 | */ 95 | public void actionPerformed(ActionEvent e) { 96 | int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?"); 97 | //JOptionPane.setRootFrame(null); 98 | if(a==JOptionPane.YES_OPTION){ 99 | 100 | String name1=nm.getText(); 101 | String sub1=sub.getText(); 102 | int j=0; 103 | String id1=idd.getText(); 104 | try{ 105 | System.out.println("add"); 106 | 107 | Class.forName("com.mysql.jdbc.Driver"); 108 | 109 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 110 | 111 | PreparedStatement st=(PreparedStatement) con.prepareStatement("INSERT INTO facult(name,user,sub,pass) values(?,?,?,?)"); 112 | 113 | st.setString(1, name1); 114 | st.setString(2, id1); 115 | st.setString(3, sub1); 116 | st.setString(4, "UEMK"); 117 | 118 | 119 | j=st.executeUpdate(); 120 | 121 | } 122 | catch(Exception w1) 123 | { 124 | System.out.println(w1); 125 | } 126 | 127 | int i = 0; 128 | if(j==1) 129 | { 130 | String n="\n"; 131 | 132 | 133 | JOptionPane.showMessageDialog(btnNewButton,"Congratulations,"+n+"Student is added sucessfully"+n+"Thankyou."); 134 | } 135 | else 136 | { 137 | 138 | JOptionPane.showMessageDialog(btnNewButton,"Please,enter the informations"); 139 | } 140 | } 141 | 142 | } 143 | }); 144 | btnNewButton.setFont(new Font("Segoe UI", Font.PLAIN, 30)); 145 | btnNewButton.setBounds(376, 318, 197, 80); 146 | contentPane.add(btnNewButton); 147 | 148 | 149 | } 150 | } -------------------------------------------------------------------------------- /School Management System Java-Using Swing-Mysql/Project/Admin/AdminLogin.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.Color; 4 | 5 | import javax.swing.*; 6 | import java.awt.BorderLayout; 7 | import java.awt.EventQueue; 8 | import java.awt.Font; 9 | import java.awt.Toolkit; 10 | 11 | import javax.swing.border.EmptyBorder; 12 | 13 | import com.mysql.jdbc.Connection; 14 | import com.mysql.jdbc.PreparedStatement; 15 | 16 | import User.UserLogin; 17 | 18 | import java.awt.event.ActionListener; 19 | import java.sql.DriverManager; 20 | import java.sql.ResultSet; 21 | import java.awt.event.ActionEvent; 22 | import java.awt.Color; 23 | 24 | public class AdminLogin extends JFrame { 25 | 26 | private JPanel contentPane; 27 | private JTextField textField; 28 | private JPasswordField passwordField; 29 | private JButton btnNewButton; 30 | private JButton btnNewButton_1; 31 | private String user[]={"Soumyadip","Soumya"}; 32 | private String pass[]={"abcd","abcde"}; 33 | private JLabel lblNewLabel_1; 34 | private JLabel label; 35 | private JLabel label_1; 36 | 37 | 38 | public static void main(String[] args) { 39 | EventQueue.invokeLater(new Runnable() { 40 | public void run() { 41 | try { 42 | AdminLogin frame = new AdminLogin(); 43 | frame.setTitle("School Management System"); 44 | frame.setVisible(true); 45 | } catch (Exception e) { 46 | e.printStackTrace(); 47 | } 48 | } 49 | }); 50 | } 51 | 52 | 53 | public AdminLogin() { 54 | //setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0.jpg")); 55 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 56 | setBounds(450, 190, 1014, 597); 57 | setResizable(false); 58 | 59 | contentPane = new JPanel(); 60 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 61 | setContentPane(contentPane); 62 | contentPane.setLayout(null); 63 | 64 | JLabel lblNewLabel = new JLabel("Faculty Login"); 65 | lblNewLabel.setForeground(Color.BLACK); 66 | lblNewLabel.setFont(new Font("Times New Roman", Font.PLAIN, 46)); 67 | lblNewLabel.setBounds(364, 13, 273, 93); 68 | contentPane.add(lblNewLabel); 69 | 70 | textField = new JTextField(); 71 | textField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 72 | textField.setBounds(481, 170, 281, 68); 73 | contentPane.add(textField); 74 | textField.setColumns(10); 75 | 76 | passwordField = new JPasswordField(); 77 | passwordField.setFont(new Font("Tahoma", Font.PLAIN, 32)); 78 | passwordField.setBounds(481, 286, 281, 68); 79 | contentPane.add(passwordField); 80 | 81 | JLabel lblUsername = new JLabel("Faculty-ID"); 82 | lblUsername.setBackground(Color.BLACK); 83 | lblUsername.setForeground(Color.BLACK); 84 | lblUsername.setFont(new Font("Tahoma", Font.PLAIN, 31)); 85 | lblUsername.setBounds(250, 178, 193, 52); 86 | contentPane.add(lblUsername); 87 | 88 | JLabel lblPassword = new JLabel("Password"); 89 | lblPassword.setForeground(Color.BLACK); 90 | lblPassword.setBackground(Color.CYAN); 91 | lblPassword.setFont(new Font("Tahoma", Font.PLAIN, 31)); 92 | lblPassword.setBounds(250, 286, 193, 52); 93 | contentPane.add(lblPassword); 94 | 95 | btnNewButton = new JButton("Login"); 96 | btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 26)); 97 | btnNewButton.setBounds(545, 392, 162, 73); 98 | btnNewButton.addActionListener(new ActionListener() { 99 | 100 | public void actionPerformed(ActionEvent e) { 101 | // TODO Auto-generated method stub 102 | int i=0,j=0; 103 | String ustr=textField.getText(); 104 | String pstr=passwordField.getText(); 105 | try{ 106 | System.out.println("add"); 107 | 108 | Class.forName("com.mysql.jdbc.Driver"); 109 | 110 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 111 | 112 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select user,pass from facult where user=? and pass=?"); 113 | 114 | st.setString(1,ustr); 115 | st.setString(2,pstr); 116 | ResultSet rs=st.executeQuery(); 117 | if(rs.next()) 118 | { 119 | 120 | i=1; 121 | } 122 | else{ 123 | 124 | i=0; 125 | } 126 | } 127 | catch(Exception w1) 128 | { 129 | System.out.println(w1); 130 | } 131 | 132 | if(i==1) 133 | { 134 | dispose(); 135 | AdminHome ah=new AdminHome(); 136 | ah.setTitle("Faculty Home"); 137 | ah.setVisible(true); 138 | JOptionPane.showMessageDialog(btnNewButton, "You have successfully logged in"); 139 | } 140 | else 141 | { 142 | JOptionPane.showMessageDialog(btnNewButton, "Wrong Username & Password"); 143 | } 144 | } 145 | }); 146 | 147 | contentPane.add(btnNewButton); 148 | 149 | btnNewButton_1 = new JButton("Student"); 150 | btnNewButton_1.addActionListener(new ActionListener() { 151 | public void actionPerformed(ActionEvent e) { 152 | dispose(); 153 | UserLogin us=new UserLogin(); 154 | us.setTitle("Student-Login"); 155 | us.setVisible(true); 156 | } 157 | }); 158 | btnNewButton_1.setFont(new Font("Tahoma", Font.PLAIN, 26)); 159 | btnNewButton_1.setBounds(250, 387, 193, 83); 160 | contentPane.add(btnNewButton_1); 161 | 162 | label_1 = new JLabel(""); 163 | // label_1.setIcon(new ImageIcon("C:\\Users\\Soumyadeep\\Desktop\\a11.jpg")); 164 | label_1.setBounds(0, 0, 1008, 562); 165 | contentPane.add(label_1); 166 | } 167 | 168 | } -------------------------------------------------------------------------------- /School Management System Java-Using Swing-Mysql/Project/Admin/Home.java: -------------------------------------------------------------------------------- 1 | package Admin; 2 | 3 | import java.awt.EventQueue; 4 | import java.awt.List; 5 | import java.sql.DriverManager; 6 | import java.sql.ResultSet; 7 | 8 | import javax.swing.JButton; 9 | import javax.swing.JFrame; 10 | import javax.swing.JPanel; 11 | import javax.swing.JTable; 12 | import javax.swing.border.EmptyBorder; 13 | 14 | import com.mysql.jdbc.Connection; 15 | import com.mysql.jdbc.PreparedStatement; 16 | 17 | public class Home extends JFrame { 18 | 19 | private JPanel contentPane; 20 | private JTable table; 21 | 22 | /** 23 | * Launch the application. 24 | */ 25 | public static void main(String[] args) { 26 | 27 | 28 | EventQueue.invokeLater(new Runnable() { 29 | public void run() { 30 | try { 31 | Home frame = new Home(); 32 | frame.setVisible(true); 33 | } catch (Exception e) { 34 | e.printStackTrace(); 35 | } 36 | } 37 | }); 38 | } 39 | 40 | /** 41 | * Create the frame. 42 | */ 43 | public Home() { 44 | // setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 45 | setBounds(450, 319, 1014, 460); 46 | setResizable(false); 47 | 48 | contentPane = new JPanel(); 49 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); 50 | setContentPane(contentPane); 51 | contentPane.setLayout(null); 52 | 53 | JButton btnNewButton = new JButton("New button"); 54 | btnNewButton.setBounds(490, 441, 97, 25); 55 | contentPane.add(btnNewButton); 56 | 57 | String[][] data =new String[100][2]; 58 | int i=0,j=0; 59 | List li1=new List(); 60 | List li2=new List(); 61 | List li3=new List(); 62 | List li4=new List(); 63 | List li5=new List(); 64 | List li6=new List(); 65 | List li7=new List(); 66 | List li8=new List(); 67 | // Column Names 68 | String[] columnNames = { "Name", "Department", }; 69 | 70 | // Initializing the JTable 71 | 72 | 73 | try{ 74 | System.out.println("add"); 75 | 76 | Class.forName("com.mysql.jdbc.Driver"); 77 | //System.out.println("add"); 78 | Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root",""); 79 | //System.out.println("add"); 80 | 81 | PreparedStatement st=(PreparedStatement) con.prepareStatement("Select name,class,section,roll,teach from stu"); 82 | //System.out.println("add"); 83 | //st.setString(7,city); 84 | 85 | ResultSet rs=st.executeQuery(); 86 | 87 | li1.add("|-----|Name|-----|"); 88 | 89 | li2.add("|-----|Class-Section-Roll-Teach|-----|"); 90 | 91 | while(rs.next()) 92 | { 93 | /*data[i][j]=rs.getString(1); 94 | j++; 95 | data[i][j]=rs.getString(2); 96 | //System.out.println(data[i][j]); 97 | i++;*/ 98 | li1.add(rs.getString(1)); 99 | i++; 100 | li2.add(rs.getString(2)+"-"+rs.getString(3)+"-"+rs.getString(4)+"-"+rs.getString(5)); 101 | 102 | } 103 | } 104 | catch(Exception e) 105 | { 106 | System.out.println(e); 107 | } 108 | String data1[][]=new String[i][i]; 109 | 110 | j=0; 111 | for (int k=0;k