Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #4

Open
wants to merge 122 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
b8e878b
Create build.yml
BhushanShete Sep 7, 2023
6a33a96
Update build.yml
BhushanShete Sep 8, 2023
0d28e30
Update build.yml
BhushanShete Sep 8, 2023
223e83b
Create sonar-project.properties
BhushanShete Sep 8, 2023
71e328a
Update build.yml
BhushanShete Sep 8, 2023
e644ec5
Update build.yml
BhushanShete Sep 8, 2023
2f932bc
Update build.yml
BhushanShete Sep 8, 2023
3d47e4e
Update build.yml
BhushanShete Sep 8, 2023
53b3f3b
Update build.yml
BhushanShete Sep 8, 2023
0d4214d
Create build.gradle
BhushanShete Sep 8, 2023
047e90e
Update build.yml
BhushanShete Sep 8, 2023
c7077d8
Create HotelReservationTest.java
BhushanShete Sep 8, 2023
081054b
Update sonar-project.properties
BhushanShete Sep 8, 2023
2883600
Update build.yml
BhushanShete Sep 8, 2023
db614c6
Update build.yml
BhushanShete Sep 28, 2023
a32862b
Update build.yml
BhushanShete Sep 28, 2023
19b0e40
Update sonar-project.properties
BhushanShete Sep 28, 2023
4132839
Update sonar-project.properties
BhushanShete Sep 28, 2023
98093fb
Create Jenkinsfile
BhushanShete Sep 28, 2023
e3b8729
Update Jenkinsfile
BhushanShete Sep 28, 2023
c627a28
Update Jenkinsfile
BhushanShete Sep 28, 2023
5cf5a6d
Update Jenkinsfile
BhushanShete Sep 28, 2023
0839481
Update Jenkinsfile
BhushanShete Oct 4, 2023
3bbab82
Update Jenkinsfile
BhushanShete Oct 4, 2023
910394b
Update Jenkinsfile
BhushanShete Oct 4, 2023
c0151eb
Update Jenkinsfile
BhushanShete Oct 4, 2023
6bb1b10
Update Jenkinsfile
BhushanShete Oct 4, 2023
151110d
Update Jenkinsfile
BhushanShete Oct 4, 2023
8a6cc59
Create pom.xml
BhushanShete Oct 4, 2023
1332b5b
Update Jenkinsfile
BhushanShete Oct 4, 2023
07adb33
Update Jenkinsfile
BhushanShete Oct 4, 2023
a24cef7
Update Jenkinsfile
BhushanShete Oct 4, 2023
9d6df64
Update Jenkinsfile
BhushanShete Oct 4, 2023
364933e
Update Jenkinsfile
BhushanShete Oct 4, 2023
95fb13d
Update Jenkinsfile
BhushanShete Oct 4, 2023
5c16deb
Update Jenkinsfile
BhushanShete Oct 4, 2023
6a93bce
Update Jenkinsfile
BhushanShete Oct 4, 2023
ba3abcf
Update Jenkinsfile
BhushanShete Oct 4, 2023
3f56491
Update sonar-project.properties
BhushanShete Oct 4, 2023
c6d5f8f
Update sonar-project.properties
BhushanShete Oct 4, 2023
7bc52f0
Update sonar-project.properties
BhushanShete Oct 4, 2023
da9742b
Update sonar-project.properties
BhushanShete Oct 4, 2023
48c7f73
Update sonar-project.properties
BhushanShete Oct 4, 2023
1f08d14
Update build.gradle
BhushanShete Oct 4, 2023
24f9e88
Merge pull request #1 from BhushanShete/master
BhushanShete Oct 4, 2023
b96d74f
Update build.yml
BhushanShete Oct 4, 2023
2b6e6a9
Update sonar-project.properties
BhushanShete Oct 4, 2023
4848955
Update sonar-project.properties
BhushanShete Oct 4, 2023
ae85b15
Update sonar-project.properties
BhushanShete Oct 4, 2023
4276710
Delete pom.xml
BhushanShete Oct 4, 2023
f5e1313
Delete src directory
BhushanShete Oct 4, 2023
f5ebd90
Delete .github/workflows directory
BhushanShete Oct 4, 2023
0efd39d
Create pom.xml
BhushanShete Oct 4, 2023
bd65a90
Update Jenkinsfile
BhushanShete Oct 4, 2023
e894f7e
Update sonar-project.properties
BhushanShete Oct 4, 2023
a46118e
Update sonar-project.properties
BhushanShete Oct 4, 2023
f31130d
Update sonar-project.properties
BhushanShete Oct 4, 2023
636e03d
Update sonar-project.properties
BhushanShete Oct 4, 2023
b1c7f90
Update sonar-project.properties
BhushanShete Oct 4, 2023
d85255d
Update sonar-project.properties
BhushanShete Oct 4, 2023
359f465
Update sonar-project.properties
BhushanShete Oct 4, 2023
7007b65
Update sonar-project.properties
BhushanShete Oct 4, 2023
3b522ff
Update sonar-project.properties
BhushanShete Oct 4, 2023
0a2d007
Update sonar-project.properties
BhushanShete Oct 4, 2023
37a4cb7
Update sonar-project.properties
BhushanShete Oct 4, 2023
42537c7
Update sonar-project.properties
BhushanShete Oct 4, 2023
34d701d
Update sonar-project.properties
BhushanShete Oct 4, 2023
9a81113
Update sonar-project.properties
BhushanShete Oct 5, 2023
bf85d2a
Update sonar-project.properties
BhushanShete Oct 5, 2023
9bc5ab2
Update sonar-project.properties
BhushanShete Oct 5, 2023
2f214d9
Update Jenkinsfile
BhushanShete Oct 5, 2023
cd7c695
Update Jenkinsfile
BhushanShete Oct 5, 2023
aa24bd9
Update sonar-project.properties
BhushanShete Oct 5, 2023
eab0846
Update sonar-project.properties
BhushanShete Oct 5, 2023
293acf1
Update Jenkinsfile
BhushanShete Oct 5, 2023
a729d59
Update Jenkinsfile
BhushanShete Oct 5, 2023
12499b0
Update sonar-project.properties
BhushanShete Oct 5, 2023
be3a685
Update sonar-project.properties
BhushanShete Oct 5, 2023
e1ddf16
Update Jenkinsfile
BhushanShete Oct 5, 2023
dac5b97
Update sonar-project.properties
BhushanShete Oct 5, 2023
bde9e83
Update sonar-project.properties
BhushanShete Oct 5, 2023
23955c3
Update sonar-project.properties
BhushanShete Oct 5, 2023
15c38f0
Update sonar-project.properties
BhushanShete Oct 5, 2023
a6570f6
Update sonar-project.properties
BhushanShete Oct 5, 2023
0cbcdf1
Update sonar-project.properties
BhushanShete Oct 5, 2023
e0a42f2
Update sonar-project.properties
BhushanShete Oct 5, 2023
98b599c
Update sonar-project.properties
BhushanShete Oct 6, 2023
3b9241c
Update sonar-project.properties
BhushanShete Oct 6, 2023
25854d7
Update Jenkinsfile
BhushanShete Oct 6, 2023
d7aa5ce
Update sonar-project.properties
BhushanShete Oct 6, 2023
8cee285
Update sonar-project.properties
BhushanShete Oct 6, 2023
1ceaa5b
Update sonar-project.properties
BhushanShete Oct 6, 2023
1519935
Update Jenkinsfile
BhushanShete Oct 6, 2023
9fd110d
Update sonar-project.properties
BhushanShete Oct 6, 2023
47f9298
Update sonar-project.properties
BhushanShete Oct 6, 2023
1e8fe23
Delete pom.xml
BhushanShete Oct 6, 2023
e7638ca
Create pom.xml
BhushanShete Oct 6, 2023
2bf064d
Update Jenkinsfile
BhushanShete Oct 6, 2023
213e70e
Update sonar-project.properties
BhushanShete Oct 6, 2023
1807be8
Delete build.gradle
BhushanShete Oct 6, 2023
c7f63ac
Create pom.xml
BhushanShete Oct 6, 2023
5e8ceda
Create Jenkinsfile
BhushanShete Oct 6, 2023
11411d4
Create sonar-project.properties
BhushanShete Oct 6, 2023
a06d0ff
Create Add_new_books.java
BhushanShete Oct 6, 2023
813b39b
Create Add_old_books.java
BhushanShete Oct 6, 2023
0ca10de
Create Address.java
BhushanShete Oct 6, 2023
5c78090
Create AdminHost.java
BhushanShete Oct 6, 2023
087ca65
Create AdminLogin.java
BhushanShete Oct 6, 2023
968adfd
Create Book_selling_system.java
BhushanShete Oct 6, 2023
9572319
Create BuyBooks.java
BhushanShete Oct 6, 2023
49f0a55
Create Create_ac.java
BhushanShete Oct 6, 2023
08a6f98
Create Main_screen.java
BhushanShete Oct 6, 2023
b05b9e3
Create Request.java
BhushanShete Oct 6, 2023
6fd953d
Create Show_bookings.java
BhushanShete Oct 6, 2023
1cb2eec
Create UserHost.java
BhushanShete Oct 6, 2023
87ce17a
Create Userlogin.java
BhushanShete Oct 6, 2023
97ee74a
Create index.html
BhushanShete Oct 6, 2023
c8ef117
Update Jenkinsfile
BhushanShete Oct 6, 2023
1613705
Update sonar-project.properties
BhushanShete Oct 6, 2023
ab60d8b
Update sonar-project.properties
BhushanShete Oct 6, 2023
8dd0a91
Update Jenkinsfile
BhushanShete Oct 6, 2023
f1f2a89
Update sonar-project.properties
BhushanShete Oct 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 226 additions & 0 deletions Add_new_books.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
package Textbook_selling_system;
/**
*
* @author Soumyadip Chowdhury
* @github soumyadip007
*
*/
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Add_new_books extends JFrame {

private JPanel contentPane;

/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Add_new_books frame = new Add_new_books();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

/**
* Create the frame.
*/
public Add_new_books() {
setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\Soumyadeep\\Desktop\\Book Hub\\0 (Custom).jpg"));

//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(450, 319, 1014, 460);
setResizable(false);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);

JLabel lblNewLabel = new JLabel("Book's name :- ");
lblNewLabel.setFont(new Font("Segoe UI", Font.PLAIN, 20));
lblNewLabel.setBounds(59, 25, 145, 32);
contentPane.add(lblNewLabel);

JLabel label = new JLabel("Writer's name :- ");
label.setFont(new Font("Segoe UI", Font.PLAIN, 20));
label.setBounds(59, 101, 145, 32);
contentPane.add(label);

JLabel label_1 = new JLabel("Condition :- ");
label_1.setFont(new Font("Segoe UI", Font.PLAIN, 20));
label_1.setBounds(59, 184, 145, 32);
contentPane.add(label_1);

JTextArea bkname = new JTextArea();
bkname.setFont(new Font("Segoe UI", Font.PLAIN, 20));
bkname.setBounds(235, 26, 166, 37);
contentPane.add(bkname);

JTextArea wrtrname = new JTextArea();
wrtrname.setFont(new Font("Segoe UI", Font.PLAIN, 20));
wrtrname.setBounds(235, 102, 166, 37);
contentPane.add(wrtrname);

JRadioButton rdbtnNewRadioButton = new JRadioButton(" Old");
rdbtnNewRadioButton.setFont(new Font("Segoe UI", Font.PLAIN, 20));
rdbtnNewRadioButton.setSelected(false);
rdbtnNewRadioButton.setEnabled(false);
rdbtnNewRadioButton.setBounds(235, 172, 75, 32);
contentPane.add(rdbtnNewRadioButton);

JRadioButton rdbtnNewRadioButton_1 = new JRadioButton(" New");
rdbtnNewRadioButton_1.setFont(new Font("Segoe UI", Font.PLAIN, 20));
rdbtnNewRadioButton_1.setSelected(true);
rdbtnNewRadioButton_1.setEnabled(false);
rdbtnNewRadioButton_1.setBounds(235, 213, 81, 26);
contentPane.add(rdbtnNewRadioButton_1);

JLabel label_2 = new JLabel(" Published Date :- ");
label_2.setFont(new Font("Segoe UI", Font.PLAIN, 20));
label_2.setBounds(481, 25, 158, 32);
contentPane.add(label_2);

JComboBox date = new JComboBox();
for(int i=1;i<=31;i++)
{
String str=String.valueOf(i);
date.addItem(str);
}
date.setBounds(662, 32, 48, 27);
contentPane.add(date);

JComboBox month = new JComboBox();
month.setBounds(739, 32, 75, 27);
month.addItem("Jan");
month.addItem("Feb");
month.addItem("Mar");
month.addItem("Apr");
month.addItem("May");
month.addItem("Jun");
month.addItem("Jul");
month.addItem("Aug");
month.addItem("Sep");
month.addItem("Oct");
month.addItem("Nov");
month.addItem("Dec");
contentPane.add(month);

JComboBox year = new JComboBox();
for(int i=1901;i<=2018;i++)
{
String str=String.valueOf(i);
year.addItem(str);
}
year.setBounds(841, 32, 109, 27);
contentPane.add(year);

JLabel label_3 = new JLabel(" Subject's name :- ");
label_3.setFont(new Font("Segoe UI", Font.PLAIN, 20));
label_3.setBounds(481, 184, 158, 32);
contentPane.add(label_3);

JComboBox<String> sub = new JComboBox<String>();
sub.setBounds(662, 188, 166, 32);
sub.addItem("English");
sub.addItem("Hindi");
sub.addItem("Bengali");
sub.addItem("Maths");
sub.addItem("Physics");
sub.addItem("Chemistry");
sub.addItem("Biology");
sub.addItem("Computer");
sub.addItem("History");
sub.addItem("Geography");
sub.addItem("Others");
contentPane.add(sub);

JLabel label_4 = new JLabel(" Price (INR) :- ");
label_4.setFont(new Font("Segoe UI", Font.PLAIN, 20));
label_4.setBounds(481, 261, 145, 32);
contentPane.add(label_4);

JTextArea publs = new JTextArea();
publs.setFont(new Font("Segoe UI", Font.PLAIN, 20));
publs.setBounds(662, 102, 166, 37);
contentPane.add(publs);

JLabel label_5 = new JLabel(" Publisher name :- ");
label_5.setFont(new Font("Segoe UI", Font.PLAIN, 20));
label_5.setBounds(481, 101, 169, 32);
contentPane.add(label_5);

JTextArea price = new JTextArea();
price.setFont(new Font("Segoe UI", Font.PLAIN, 20));
price.setBounds(662, 262, 166, 37);
contentPane.add(price);

JLabel label_6 = new JLabel("Source :- ");
label_6.setFont(new Font("Segoe UI", Font.PLAIN, 20));
label_6.setBounds(59, 261, 145, 32);
contentPane.add(label_6);

JTextArea src = new JTextArea();
src.setFont(new Font("Segoe UI", Font.PLAIN, 20));
src.setBounds(235, 262, 166, 37);
contentPane.add(src);

JButton btnNewButton = new JButton("Add");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int a=JOptionPane.showConfirmDialog(btnNewButton,"Are you sure?");
//JOptionPane.setRootFrame(null);
if(a==JOptionPane.YES_OPTION){

String name=bkname.getText();
String writer= wrtrname.getText();
String condition="New";
String source=src.getText();
String publisher=publs.getText();
String subject= (String) sub.getSelectedItem();
String prc=price.getText();
String dt=(String) date.getSelectedItem();
String mnth=(String) month.getSelectedItem();
String yr=(String) year.getSelectedItem();

if(name != "" && writer != "" && source != null && prc != null && publisher != null)
{
String n="\n";


JOptionPane.showMessageDialog(btnNewButton,"Congratulations,"+n+"Book is added sucessfully"+n+"Thankyou.");
}
else
{

JOptionPane.showMessageDialog(btnNewButton,"Please,enter the informations");
}
}

}
});
btnNewButton.setFont(new Font("Segoe UI", Font.PLAIN, 30));
btnNewButton.setBounds(376, 318, 197, 80);
contentPane.add(btnNewButton);
}
}
Loading