File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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 ){
You can’t perform that action at this time.
0 commit comments