-
Notifications
You must be signed in to change notification settings - Fork 5
/
About.java
95 lines (72 loc) · 3 KB
/
About.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package travel_and_Tourism_Organisation_System;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.Font;
import javax.swing.JFrame;
import javax.swing.border.Border;
public class About extends JFrame implements ActionListener {
JButton b1;
JLabel l1;
Font f, f1, f2;
TextArea t1;
String s;
public About() {
setLayout(null);
JButton b1 = new JButton("Exit");
add(b1);
b1.setBounds(180,420, 120, 30);
b1.addActionListener(this);
Font f = new Font("RALEWAY", Font.BOLD, 180);
setFont(f);
s = " About Projects \n "
+ "\nThe objective of the Travel and Tourism Management System "
+ "project is to develop a system that automates the processes "
+ "and activities of a travel and the purpose is to design a "
+ "system using which one can perform all operations related to "
+ "traveling.\n\n"
+ "This application will help in accessing the information related "
+ "to the travel to the particular destination with great ease. "
+ "The users can track the information related to their tours with "
+ "great ease through this application. The travel agency information "
+ "can also be obtained through this application.\n\n"
+ "Advantages of Project:"
+ "\nGives accurate information"
+ "\nSimplifies the manual work"
+ "\nIt minimizes the documentation related work"
+ "\nProvides up to date information"
+ "\nFriendly Environment by providing warning messages."
+ "\ntravelers details can be provided"
+ "\nbooking confirmation notification"
;
TextArea t1 = new TextArea(s, 10, 40, Scrollbar.VERTICAL);
t1.setEditable(false);
t1.setBounds(45 , 100, 450, 300);
add(t1);
Font f1 = new Font("RALEWAY", Font.BOLD, 16);
t1.setFont(f1);
Container contentPane = this.getContentPane();
t1 = new TextArea();
contentPane.setBackground(Color.cyan);
JLabel l1 = new JLabel("About Project");
add(l1);
l1.setBounds(170, 10, 180, 80);
l1.setForeground(Color.red);
Font f2 = new Font("RALEWAY", Font.BOLD, 20);
l1.setFont(f2);
setBounds(400,120,550,500);
setLayout(null);
setVisible(true);
}
public void actionPerformed(ActionEvent ae) {
setVisible(false);
}
public static void main(String args[]) {
new About();
}
}