-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
390 additions
and
53 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.awt.event.*; | ||
|
||
public class AddBookFailure extends JFrame implements ActionListener{ | ||
JButton okButton; | ||
public AddBookFailure(){ | ||
super("Failure to add book"); | ||
setLayout(new GridLayout(2,1,8,8)); | ||
setSize(300, 600); | ||
Font fontRegular = new Font("Segoe UI", Font.PLAIN, 20); | ||
|
||
JLabel failLabel = new JLabel("Please fill all the fields correctly"); | ||
failLabel.setFont(fontRegular); | ||
|
||
okButton = new JButton("OK"); | ||
okButton.addActionListener(this); | ||
okButton.setFont(fontRegular); | ||
|
||
add(failLabel); | ||
add(okButton); | ||
|
||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
pack(); | ||
setResizable(true); | ||
setVisible(true); | ||
} | ||
public void actionPerformed(ActionEvent e){ | ||
if(e.getSource() == okButton){ | ||
dispose(); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.awt.event.*; | ||
|
||
public class AddBookSuccess extends JFrame implements ActionListener{ | ||
JButton okButton; | ||
public AddBookSuccess(){ | ||
super("Success"); | ||
setLayout(new GridLayout(2,1,8,8)); | ||
setSize(300, 600); | ||
Font fontRegular = new Font("Segoe UI", Font.PLAIN, 20); | ||
|
||
JLabel failLabel = new JLabel("Book added successfully"); | ||
failLabel.setFont(fontRegular); | ||
|
||
okButton = new JButton("OK"); | ||
okButton.addActionListener(this); | ||
okButton.setFont(fontRegular); | ||
|
||
add(failLabel); | ||
add(okButton); | ||
|
||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
pack(); | ||
setResizable(true); | ||
setVisible(true); | ||
} | ||
public void actionPerformed(ActionEvent e){ | ||
if(e.getSource() == okButton){ | ||
dispose(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
public class App { | ||
public static Library lib = new Library(); | ||
public static void main(String[] args) throws Exception { | ||
public static void main(String[] args) { | ||
new Login(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.awt.event.*; | ||
|
||
public class IssueFailure extends JFrame implements ActionListener{ | ||
JButton okButton; | ||
public IssueFailure(){ | ||
super("Failure to issue book"); | ||
setLayout(new GridLayout(2,1,8,8)); | ||
setSize(300, 600); | ||
Font fontRegular = new Font("Segoe UI", Font.PLAIN, 20); | ||
|
||
JLabel failLabel = new JLabel("Book not available"); | ||
failLabel.setFont(fontRegular); | ||
|
||
okButton = new JButton("OK"); | ||
okButton.addActionListener(this); | ||
okButton.setFont(fontRegular); | ||
|
||
add(failLabel); | ||
add(okButton); | ||
|
||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
pack(); | ||
setResizable(true); | ||
setVisible(true); | ||
} | ||
public void actionPerformed(ActionEvent e){ | ||
if(e.getSource() == okButton){ | ||
dispose(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.awt.event.*; | ||
|
||
public class IssueSuccess extends JFrame implements ActionListener{ | ||
JButton okButton; | ||
public IssueSuccess(){ | ||
super("Success"); | ||
setLayout(new GridLayout(2,1,8,8)); | ||
setSize(300, 600); | ||
Font fontRegular = new Font("Segoe UI", Font.PLAIN, 20); | ||
|
||
JLabel failLabel = new JLabel("Book issued successfully"); | ||
failLabel.setFont(fontRegular); | ||
|
||
okButton = new JButton("OK"); | ||
okButton.addActionListener(this); | ||
okButton.setFont(fontRegular); | ||
|
||
add(failLabel); | ||
add(okButton); | ||
|
||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
pack(); | ||
setResizable(true); | ||
setVisible(true); | ||
} | ||
public void actionPerformed(ActionEvent e){ | ||
if(e.getSource() == okButton){ | ||
dispose(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ public void actionPerformed(ActionEvent e){ | |
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.awt.event.*; | ||
|
||
public class ReturnSuccess extends JFrame implements ActionListener{ | ||
JButton okButton; | ||
public ReturnSuccess(){ | ||
super("Success"); | ||
setLayout(new GridLayout(2,1,8,8)); | ||
setSize(300, 600); | ||
Font fontRegular = new Font("Segoe UI", Font.PLAIN, 20); | ||
|
||
JLabel failLabel = new JLabel("Book returned successfully"); | ||
failLabel.setFont(fontRegular); | ||
|
||
okButton = new JButton("OK"); | ||
okButton.addActionListener(this); | ||
okButton.setFont(fontRegular); | ||
|
||
add(failLabel); | ||
add(okButton); | ||
|
||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
pack(); | ||
setResizable(true); | ||
setVisible(true); | ||
} | ||
public void actionPerformed(ActionEvent e){ | ||
if(e.getSource() == okButton){ | ||
dispose(); | ||
} | ||
} | ||
} |
Oops, something went wrong.