-
Notifications
You must be signed in to change notification settings - Fork 0
/
Navigation.java
39 lines (29 loc) · 953 Bytes
/
Navigation.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.cruds.swingproj;
import java.awt.CardLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Navigation extends JFrame
{
private JPanel mainpanel;
public Navigation()
{
setTitle("Book Management System");
setSize(400,400);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
mainpanel = new JPanel();
mainpanel.setLayout(new CardLayout());
mainpanel.add(new HomePanel(), "HOMEPANEL");
mainpanel.add(new CreateBookPanel(), "CREATEPANEL");
mainpanel.add(new DisplayBookPanel(), "DISPLAYPANEL");
mainpanel.add(new SearchPanel(), "SEARCHPANEL");
mainpanel.add(new CreateStudentPanel(), "STUDENTPANEL");
mainpanel.add(new StudentDisplayPanel(), "STUDENTDISPLAY");
mainpanel.add(new Book_IssuePanel(), "BOOKISSUE");
add(mainpanel);
setVisible(true);
}
public static void main(String[] args) {
new Navigation();
}
}