Skip to content

Commit 8e08bcc

Browse files
committed
add about button
1 parent 2645d06 commit 8e08bcc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Library/FrmLibrary.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class FrmLibrary extends JFrame{
1818
JButton btnCustomer = new JButton("Customer");
1919
JButton btnAdmin = new JButton("Adminstrator");
2020
JButton btnExit = new JButton("Exit");
21+
JButton btnAbout = new JButton("About");
2122

2223
public FrmLibrary(){
2324
Book book1 = new Book();
@@ -69,6 +70,10 @@ public FrmLibrary(){
6970
btnExit.setBounds(450, 520, 120, 30);
7071
this.add(btnExit);
7172

73+
btnAbout.setVisible(true);
74+
btnAbout.setBounds(20, 520, 120, 30);
75+
this.add(btnAbout);
76+
7277
btnAdmin.addActionListener(new java.awt.event.ActionListener() {
7378
public void actionPerformed(java.awt.event.ActionEvent evt) {
7479
FrmAdministratorLog AdministratorLog = new FrmAdministratorLog(L);
@@ -86,6 +91,12 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
8691
FrmCustomerLogin CustomerLogin = new FrmCustomerLogin();
8792
}
8893
});
94+
95+
btnAbout.addActionListener(new java.awt.event.ActionListener() {
96+
public void actionPerformed(java.awt.event.ActionEvent evt){
97+
FrmAbout about = new FrmAbout();
98+
}
99+
});
89100
}
90101

91102
public static void main(String[] a){

0 commit comments

Comments
 (0)