Академический Документы
Профессиональный Документы
Культура Документы
A project Report
Submitted to the
ABSTRACT
This is important to study about periodic table for school students. Now a days the
printed copies or text books are available to know the features of an elements. This is a time
consuming process. This software helps to overcome this situation. This software will store the
details of periodic table and provides searching based on various criteria such as atomic number,
element name etc.
CERTIFICATE
Certified that this is the bonafide record of the project entitled "PERIODIC WORLD" work
done and submitted by SHIBU L Reg. No:13130050, 5th Semester Student towards partial
fulfilment of the requirement for the award of the Diploma in Computer Engineering at
Central polytechnic College, Vattiyoorkavu under the Directorate of Technical Education,
Government of Kerala during the academic year 2015-2016.
Mr. MOHAN S
Lecturer in Computer Engineering
Place:
Date:
Mrs. AMBILI M
Head of the Department,
Department Of Computer Engineering
Central Polytechnic College,
Trivandrum
Internal Examiner
External Examiner
CHAPTER 1
INTRODUCTION
The periodic table of elements is one of the most important tools of chemistry. Through its ingenious
organization, the table provides concise and fundamental information not only about every individual
element, but also about general trends across all the elements. One of the greatest intellectual
achievement in chemistry is the periodic table of the elements. The periodic table can be printed on a
single sheet of paper, but what it contains and can teach us is enormous and beyond measure. The
periodic table is the outcome of continuous effort, beginning in ancient Greece, to understand the true
nature of matter. It can rightly be called the Bible of chemistry. The value of the periodic table is not
only in its organization of known information, but also in its ability to predict unknown properties.
The true greatness of the periodic table lies in that ability.
The concept of elements is very old, dating back to ancient Greece. According to the Greek
philosophers, matter was made up of four elements: earth, water, fire and air. That view gradually
declined, and in the 17th century, the definition of elements by the British chemist Robert Boyle
(1627-1691) replaced it. Boyle stated that elements are substances that cannot be decomposed into
simpler substances. Lavoisier proposed a list of elements in his principal work "Traite Elementire de
Chemie". Though he included light and heat in the list, the other members of the list were what we
accept as elements today. In addition, he added to the list some elements that had not yet been detected
but whose existence he presumed. Although welcomed by chemists, new problems arose. One was
the question "Is there any limitation on the number of elements?" and the other was "Should we
expect any kind of regularity in the properties of elements?" The discovery of new elements catalysed
such discussions. When iodine was discovered in 1826, the German chemist Johann Wolfgang
Dbereiner (1780-1849) noticed the similarity between this new element and the already known
elements chlorine and bromine. He also detected other trios of similar elements. This is the "triad"
theory of Dbereiner.
Mendeleev published a table that might be regarded as the origin of the modern periodic table. In
preparing the table, Mendeleev initially arranged the elements in the order of their atomic weights, as
his predecessors had. However, he pointed out the periodicity of properties, and sometimes rearranged
the elements, thus reversing the order based on atomic weights. Furthermore, the situation was
1
complicated because the procedure for determining the atomic weights had not yet been standardized,
and sometimes chemists might use different atomic weights for one and the same element.
The viewpoint of Mendeleev and Meyer are the list of elements known at that time is not necessarily
complete and it is expected that the properties of elements vary systematically. Hence the properties
of unknown elements can be predicted.
There were quite a few chemists who were interested in the periodicity of the properties of elements.
The British chemist John Alexandere Reina Newlands (1837-1898) was one of them. Around 1865, he
arranged in the order of atomic weight some 60 elements known at that time, and put these in a
table with eight rows and six columns. To his surprise, he noticed that the 1st element and the 8th
element and moreover, the 8th element and the 15th element had similar properties. In other words,
an element with similar properties appears at every eighth position in the table. This appearance at
every eighth position was very similar to that of musical notes. He announced his findings at a
scientific meeting, and called his rule the law of octaves. British scientists at that time made fun of
him, asking what would happen if one arranges the elements in an alphabetical order. For many years
Newlands was ignored. Finally in 1887, more than ten years after the achievement of Mendeleev was
recognized, the Chemical Society (of England) awarded him a prize.
CHAPTER 2
System Analysis refers into the process of examining a situation with the intent of improving it
through better procedures and methods. System Analysis is the process of planning a new system to
either replace or complement an existing system. The existing manual systems are examined through
sheer observation and researches to understand its flaws and to develop a new application avoiding
those particular problems.
In this desktop system, information retrieved is very quick and provides modification of records. It
provides a reliable and dynamic system which will satisfy and users requirements and provide a better
working environment.
The major features of the system are outlined below
Security of data and ensure data accuracy's
Greater efficiency
User friendly and interactive
Time saving
System analysis refers into the process of examining a situation with the intent of improving it through
better procedures and methods. System Analysis is the process of planning a new system to either
replace or complement an existing system. The existing manual systems are examined through sheer
observation and researches to understand its flows and to develop a new application avoiding those
particular problems.
The existing system is manual book or file work, which consumes more time than any automated
systems. Even if in this modern time, most of the scientists, teachers and school students are using
the printed books for referring the periodic table elements. It is not an effective system to find the
characteristics of all elements in a periodic table.
This is important to study about periodic table for school students. The periodic table contains 118
elements. Each of the elements have their own features. Each element in this periodic table have the
following attributes.
Atomic name
Atomic symbol
Atomic number
Atomic mass
Period
Group
State
Electronic shell
Melting boiling
Boiling point
Discovered by
4
The periodic table shows all known elements in the universe. These elements are organized by
chemical properties. The elements contains atomic number, atomic mass, symbol, boiling points,
configuration, period, group, state etc.
Element: - An element is a substance that is made entirely from one type of atom.
Symbol: - An abbreviation of the element name.
Atomic number:- In chemistry, the atomic number of a chemical element (also known as its
proton number) is the number of protons found in the nucleus of an atom of that element,
and therefore identical to the charge number of the nucleus.
Mass number: - The mass number (A), also called atomic mass number or nucleon number,
is the total number of protons and neutrons (together known as nucleons) in an atomic
nucleus. It determines the atomic mass of atoms.
Period: -Periods that are going left to right. Each row is called a period.
Group: - The periodic table also has a special name for its vertical columns. Each column is
called a group. The elements in each group have the same number of electrons in the outer
orbital.
State: - the particular condition that someone or something is in at a specific time.
Electronic shell: - An electron shell is the outside part of an atom around the atomic nucleus.
It is a group of atomic orbitals with the same value of the principal quantum number n.
Electron shells have one or more electron subshells, or sublevels.
These elements are organized by chemical properties and also they differ from the isotopes. Atoms
are made of extremely tiny particles called protons, neutrons, and electrons. Number of protons and
electrons is equal to the atomic number, and number of neutrons is equal to the difference between
the mass number and atomic number.
So this software is more suitable for all types of the users to know the features of the elements without
time consuming. So this system can be used by local people (users) as a normal computer application.
: MySQL Platform
Linux
2.3.2 HARDWARE SPECIFICATION
Any Commercially available standard personal computer is sufficient for this project. A sample
specification is given below.
Processor
RAM
: 4GB
: 500GB
LEVEL 0 - DFD
USER
PERIODIC WORLD
VIEW
STRUCTURE
Table Details
USER
VIEW DETAILS
2.4.5 TABLES
Database name: periodicworld50
1. Table name: elements
Field Type
Null
Key
Default Extra
name varchar(30)
YES NULL
symbol
varchar(10)
YES
atomic_number
varchar(120)
mass_number varchar(120) YES
period
varchar(10)
YES
grou varchar(10)
YES NULL
state varchar(10)
YES NULL
electronic_shell
varchar(100)
melting_point
varchar(30)
boiling_point varchar(30)
YES
discovered_by
varchar(100)
NULL
YES NULL
NULL
NULL
YES NULL
YES NULL
NULL
YES NULL
Key
YES
Default Extra
NULL
9
1. Home page
2. Structure page
10
3. Feature page
4. Isotopes page
11
home.java
package periodicworld;
import java.awt.*;
import javax.swing.*;
public class home extends JFrame {
private JPanel contentPane;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
home frame = new home();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public home() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1285, 684);
contentPane = new JPanel();
contentPane.setBackground(Color.PINK);
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
12
contentPane.add(btnContinue);
JLabel lblNewLabel = new JLabel("Welcome To The");
lblNewLabel.setForeground(new Color(255, 69, 0));
lblNewLabel.setFont(new Font("Century Schoolbook L", Font.BOLD | Font.ITALIC, 40));
lblNewLabel.setBounds(69, 47, 438, 123);
contentPane.add(lblNewLabel);
JLabel lblNewLabel_1 = new JLabel("New label");
lblNewLabel_1.setIcon(new ImageIcon("/home/student/Desktop/3D.jpg"));
lblNewLabel_1.setBounds(12, 31, 1285, 684);
contentPane.add(lblNewLabel_1);
Image img=new ImageIcon(this.getClass().getResource("/fr.jpg")).getImage();
}
}
Isotopes.java
Package periodicworld;
import java.awt.*;
import javax.swing.*;
public class Isotopes extends JFrame {
private JPanel contentPane;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Isotopes frame = new Isotopes();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public Isotopes() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1285, 684);
contentPane = new JPanel();
contentPane.setBackground(new Color(255, 192, 203));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JTextArea txtrX = new JTextArea();
txtrX.setBackground(new Color(255, 192, 203));
txtrX.setForeground(Color.RED);
txtrX.setFont(new Font("Dialog", Font.BOLD, 75));
txtrX.setText("X\n");
txtrX.setBounds(168, 108, 58, 74);
contentPane.add(txtrX);
JTextArea txtrA = new JTextArea();
txtrA.setBackground(new Color(255, 192, 203));
txtrA.setForeground(new Color(0, 128, 0));
txtrA.setFont(new Font("Dialog", Font.BOLD, 38));
13
txtrA.setText("A");
txtrA.setBounds(140, 159, 29, 44);
contentPane.add(txtrA);
JTextArea txtrZ = new JTextArea();
txtrZ.setBackground(new Color(255, 192, 203));
txtrZ.setForeground(new Color(139, 0, 0));
txtrZ.setText("Z");
txtrZ.setFont(new Font("Dialog", Font.BOLD, 38));
txtrZ.setBounds(227, 88, 29, 44);
contentPane.add(txtrZ);
JTextArea txtrAatomicNumber = new JTextArea();
txtrAatomicNumber.setBackground(new Color(221, 160, 221));
txtrAatomicNumber.setForeground(new Color(100, 149, 237));
txtrAatomicNumber.setText("A= Atomic Number");
txtrAatomicNumber.setFont(new Font("Dialog", Font.ITALIC, 30));
txtrAatomicNumber.setBounds(41, 415, 307, 31);
contentPane.add(txtrAatomicNumber);
JTextArea txtrZ_1 = new JTextArea();
txtrZ_1.setBackground(new Color(221, 160, 221));
txtrZ_1.setForeground(new Color(32, 178, 170));
txtrZ_1.setText("Z= Atomic Mass");
txtrZ_1.setFont(new Font("Dialog", Font.ITALIC, 30));
txtrZ_1.setBounds(41, 531, 307, 31);
contentPane.add(txtrZ_1);
JTextArea txtrX_1 = new JTextArea();
txtrX_1.setBackground(new Color(221, 160, 221));
txtrX_1.setForeground(new Color(106, 90, 205));
txtrX_1.setText("X= An Element");
txtrX_1.setFont(new Font("Dialog", Font.ITALIC, 30));
txtrX_1.setBounds(41, 302, 307, 31);
contentPane.add(txtrX_1);
JLabel lblNumberOfProtons = new JLabel(" Number of protons = A");
lblNumberOfProtons.setForeground(new Color(199, 21, 133));
lblNumberOfProtons.setFont(new Font("Dialog", Font.BOLD | Font.ITALIC, 50));
lblNumberOfProtons.setBounds(368, 174, 1035, 47);
contentPane.add(lblNumberOfProtons);
JLabel lblNumberOfNeutronmass = new JLabel(" Number of Neutron = Z - A");
lblNumberOfNeutronmass.setForeground(new Color(199, 21, 133));
lblNumberOfNeutronmass.setFont(new Font("Dialog", Font.BOLD | Font.ITALIC, 50));
lblNumberOfNeutronmass.setBounds(366, 316, 862, 65);
contentPane.add(lblNumberOfNeutronmass);
JLabel lblNumberOfElectrons = new JLabel(" Number of Electrons = A");
lblNumberOfElectrons.setForeground(new Color(199, 21, 133));
lblNumberOfElectrons.setFont(new Font("Dialog", Font.BOLD | Font.ITALIC, 50));
lblNumberOfElectrons.setBounds(369, 464, 826, 58);
contentPane.add(lblNumberOfElectrons);
JButton btnBack = new JButton("BACK");
btnBack.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Structure frame = new Structure();
frame.setVisible(true);
}
14
});
btnBack.setForeground(new Color(199, 21, 133));
btnBack.setBackground(new Color(250, 128, 114));
btnBack.setBounds(1016, 599, 117, 25);
contentPane.add(btnBack);
JLabel lblIsotops = new JLabel("ISOTOPES");
lblIsotops.setFont(new Font("Dialog", Font.BOLD | Font.ITALIC, 50));
lblIsotops.setForeground(new Color(0, 191, 255));
lblIsotops.setBounds(535, 23, 335, 44);
contentPane.add(lblIsotops);
}
}
Admin.java
package periodicworld;
import java.awt.*t;
import java.sql.*;
import javax.swing.*;
15
'Ca',
'20',
'40.078', '4',
Humphrey Davy in 1808')");
'4',
'3'
'2',
16
'4',
'Solid', '[
'44.955912',
'6',
'7',
'[
'[
,
'[
17
'[
'[
'[
'53',
'126.90447',
'5',
'17',
'184 C',
'Bernard Courtois in 1811')");
'54',
'131.293',
'5',
'- 107 C',
'Sir Ramsay 1898')");
'55',
'132.9054519', '6', '1',
'Fustov Kirchhoff in 1860')");
'56',
'137.327',
'6',
'2',
'Sir Humphrey Davy in 1808')");
'La',
'57',
'138.90547',
'6',
'_',
'Carl Mosander in 1839')");
18
'Solid',
'[
'Solid',
'[
'Solid',
'[
'[
'[
19
'271',
'272',
'285',
'7', '12', 'Unknown',
'S. Hofmann, V. Ninov and
'284',
'116',
'292',
'7', '16', 'Unknown',
'The Lawrence Berkeley
'294',
'118',
'294',
System.out.println("sucess insertion");
}
catch(Exception e1)
{
System.out.println("error"+e1);
}
}
});
btnInsert.setBounds(190, 73, 117, 25);
contentPane.add(btnInsert); }}
Structure.java
package periodicworld;
import java.awt.*;
import javax.swing.*;
import java.sql.*;
public class Structure extends JFrame {
private JPanel contentPane; static
Connection co=null;
static Statement st=null;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Structure frame = new Structure();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
20
'7', '18','Unknown','[Rn]
public Structure() {
setBackground(new Color(0, 0, 255));
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1285, 684);
contentPane = new JPanel();
contentPane.setBackground(new Color(216, 191, 216));
contentPane.setForeground(Color.RED);
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JButton btnH = new JButton("H");
btnH.setBackground(new Color(0, 255, 255));
btnH.setForeground(Color.RED);
btnH.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('1')");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnH.setBounds(54, 10, 66, 58);
contentPane.add(btnH);
JButton btnLi = new JButton("Li");
btnLi.setBackground(new Color(255, 69, 0));
btnLi.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('3')");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnLi.setBounds(54, 67, 66, 58);
contentPane.add(btnLi);
JButton btnNa = new JButton("Na");
btnNa.addActionListener(new ActionListener() {
21
22
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRb.setBackground(new Color(255, 69, 0));
btnRb.setBounds(54, 232, 66, 58);
contentPane.add(btnRb);
JButton btnCs = new JButton("Cs");
btnCs.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('55')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCs.setBackground(new Color(255, 69, 0));
btnCs.setBounds(54, 287, 66, 58);
contentPane.add(btnCs);
JButton btnFr = new JButton("Fr");
btnFr.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('87')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
23
24
25
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('56')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnBa.setBackground(new Color(255, 127, 80));
btnBa.setBounds(120, 287, 66, 58);
contentPane.add(btnBa);
JButton btnRa = new JButton("Ra");
btnRa.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('88')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRa.setBackground(new Color(255, 127, 80));
btnRa.setBounds(120, 342, 66, 58);
contentPane.add(btnRa);
JButton btnSc = new JButton("Sc");
btnSc.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('21')");
System.out.println("success");
}
catch(Exception q)
{
26
System.out.println("error"+q);
}
}
});
btnSc.setBackground(new Color(0, 191, 255));
btnSc.setBounds(186, 177, 66, 58);
contentPane.add(btnSc);
27
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('22')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTi.setBackground(new Color(0, 191, 255));
btnTi.setBounds(252,177,66,58);
contentPane.add(btnTi);
JButton btnZr = new JButton("Zr");
btnZr.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('40')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnZr.setBackground(new Color(0, 191, 255));
btnZr.setBounds(252,232,66,58);
contentPane.add(btnZr);
JButton btnHf = new JButton("Hf");
btnHf.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('72')");
System.out.println("success");
28
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnHf.setBackground(new Color(0, 191, 255));
btnHf.setBounds(252,287,66,58);
contentPane.add(btnHf);
JButton btnRf = new JButton("Rf");
btnRf.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('104')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRf.setBackground(new Color(0, 191, 255));
btnRf.setBounds(252,342,66,58);
contentPane.add(btnRf);
JButton btnV = new JButton("V");
btnV.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('23')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnV.setBackground(new Color(0, 191, 255));
29
btnV.setBounds(318,177,66,58);
contentPane.add(btnV);
JButton btnNb = new JButton("Nb");
btnNb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('41')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnNb.setBackground(new Color(0, 191, 255));
btnNb.setBounds(318,232,66,58);
contentPane.add(btnNb);
JButton btnTa = new JButton("Ta");
btnTa.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('73')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTa.setBackground(new Color(0, 191, 255));
btnTa.setBounds(318,287,66,58);
contentPane.add(btnTa);
JButton btnDb = new JButton("Db");
btnDb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
30
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('105')");
System.out.println("success");
c
a
t
c
h
(
E
x
c
e
p
t
i
o
n
q
)
{
Syste
m.out.println("e
rror"+q);
}
}
}
)
;
btnDb.setBackground(ne
w Color(0, 191, 255));
btnDb.setBo
unds(318,34
2,66,58);
con
tent
Pan
e.ad
d(bt
nD
b);
JButton btnCr
= new
JButton("Cr");
btnCr.addActionListener(n
ew ActionListener() {
public void
actionPerformed(ActionEvent e)
{
Features
frame =
new
Features(
);
f
r
a
m
e
.
s
e
t
V
i
s
i
b
l
e
(
t
r
u
e
)
;
t
r
y
out.pr
intln(
"succ
ess");
}
c
a
t
c
h
(
E
x
c
e
p
t
i
o
n
q
)
{
Syste
m.out.println("e
Class.f
rror"+q);
orNam
e("com.
}
mysql.j }
dbc.Dri }
ver"); )
String ;
conurl=
"jdbc: btnCr.setBackground(ne
mysql:/ w Color(0, 191, 255));
/localh btnCr.setBo
ost:330 unds(384,1
6/perio 77,66,58);
dicworl co
d50"; nte
co=Dri ntP
verManane
ager.get.ad
Connec d(b
tion(co tn
nurl,"ro Cr)
ot","pas;
sword"
JButton btnMo
);
= new
st=co.crJButton("Mo");
eateStatbtnMo.addActionListener(n
ement() ew ActionListener() {
public void
;
ResultS actionPerformed(ActionEvent e)
et res; {
Features
st.exec
frame =
uteUpd
new
ate("ins
Features(
ert into
);
number
s
f
values('
r
24')");
a
System.
m
e
.
s
e
t
V
i
s
i
b
l
e
(
t
r
u
e
)
;
t
r
y
{
Class.f
orNam
e("com.
mysql.j
dbc.Dri
ver");
String
conurl=
"jdbc:
mysql:/
/localh
ost:330
6/perio
dicworl
d50";
co=Dri
verMan
ager.get
Connec
tion(co
nurl,"ro
ot","pas
sword"
);
st=co.cr
eateStat
ement()
;
ResultS
et res;
3
1
32
}
});
btnSg.setBackground(new Color(0, 191, 255));
btnSg.setBounds(384,342,66,58);
contentPane.add(btnSg);
JButton btnMn = new JButton("Mn");
btnMn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('25')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnMn.setBackground(new Color(0, 191, 255));
btnMn.setBounds(450,177,66,58);
contentPane.add(btnMn);
JButton btnTc = new JButton("Tc");
btnTc.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('43')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTc.setBackground(new Color(0, 191, 255));
btnTc.setBounds(450,232,66,58);
contentPane.add(btnTc);
JButton btnRe = new JButton("Re");
btnRe.addActionListener(new ActionListener() {
33
34
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('26')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnFe.setBackground(new Color(0, 191, 255));
btnFe.setBounds(516,177,66,58);
contentPane.add(btnFe);
JButton btnRu = new JButton("Ru");
btnRu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('44')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRu.setBackground(new Color(0, 191, 255));
btnRu.setBounds(516,232,66,58);
contentPane.add(btnRu);
JButton btnOs = new JButton("Os");
btnOs.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('76')");
System.out.println("success");
}
catch(Exception q)
35
{
System.out.println("error"+q);
}
}
});
btnOs.setBackground(new Color(0, 191, 255));
btnOs.setBounds(516,287,66,58);
contentPane.add(btnOs);
JButton btnHs = new JButton("Hs");
btnHs.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('108')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnHs.setBackground(new Color(0, 191, 255));
btnHs.setBounds(516,342,66,58);
contentPane.add(btnHs);
JButton btnCo = new JButton("Co");
btnCo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('27')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCo.setBackground(new Color(0, 191, 255));
btnCo.setBounds(582,177,66,58);
contentPane.add(btnCo);
36
37
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('109')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnMt.setBackground(new Color(0, 191, 255));
btnMt.setBounds(582,342,66,58);
contentPane.add(btnMt);
JButton btnNi = new JButton("Ni");
btnNi.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('28')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnNi.setBackground(new Color(0, 191, 255));
btnNi.setBounds(648,177,66,58);
contentPane.add(btnNi);
JButton btnPd = new JButton("Pd");
btnPd.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('46')");
System.out.println("success");
38
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnPd.setBackground(new Color(0, 191, 255));
btnPd.setBounds(648,232,66,58);
contentPane.add(btnPd);
JButton btnPt = new JButton("Pt");
btnPt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('78')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnPt.setBackground(new Color(0, 191, 255));
btnPt.setBounds(648,287,66,58);
contentPane.add(btnPt);
JButton btnDs = new JButton("Ds");
btnDs.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('110')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
39
40
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('79')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnAu.setBackground(new Color(0, 191, 255));
btnAu.setBounds(714,287,66,58);
contentPane.add(btnAu);
JButton btnRg = new JButton("Rg");
btnRg.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('111')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRg.setBackground(new Color(0, 191, 255));
btnRg.setBounds(714,342,66,58);
contentPane.add(btnRg);
JButton btnZn = new JButton("Zn");
btnZn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
41
ResultSet res;
st.executeUpdate("insert into numbers values('30')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnZn.setBackground(new Color(0, 191, 255));
btnZn.setBounds(780,177,66,58);
contentPane.add(btnZn);
JButton btnCd = new JButton("Cd");
btnCd.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('48')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCd.setBackground(new Color(0, 191, 255));
btnCd.setBounds(780,232,66,58);
contentPane.add(btnCd);
JButton btnHg = new JButton("Hg");
btnHg.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('80')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
42
}
}
});
btnHg.setBackground(new Color(0, 191, 255));
btnHg.setBounds(780,287,66,58);
contentPane.add(btnHg);
JButton btnCn = new JButton("Cn");
btnCn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('112')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCn.setBackground(new Color(0, 191, 255));
btnCn.setBounds(780,342,66,58);
contentPane.add(btnCn);
JButton btnB = new JButton("B");
btnB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('5')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnB.setBackground(Color.GREEN);
btnB.setBounds(846,67,66,58);
contentPane.add(btnB);
43
44
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('49')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnIn.setBackground(new Color(255, 105, 180));
btnIn.setBounds(846,232,66,58);
contentPane.add(btnIn);
JButton btnTl = new JButton("Tl");
btnTl.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('81')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTl.setBackground(new Color(255, 105, 180));
btnTl.setBounds(846,287,66,58);
contentPane.add(btnTl);
JButton btnUut = new JButton("Uut");
btnUut.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('113')");
System.out.println("success");
45
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnUut.setBackground(new Color(255, 105, 180));
btnUut.setBounds(846,342,66,58);
contentPane.add(btnUut);
JButton btnC = new JButton("C");
btnC.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('6')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnC.setForeground(Color.RED);
btnC.setBackground(Color.CYAN);
btnC.setBounds(912,67,66,58);
contentPane.add(btnC);
JButton btnSi = new JButton("Si");
btnSi.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('14')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
46
});
btnSi.setBackground(Color.GREEN);
btnSi.setBounds(912,122,66,58);
contentPane.add(btnSi);
JButton btnGe = new JButton("Ge");
btnGe.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('32')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnGe.setBackground(Color.GREEN);
btnGe.setBounds(912,177,66,58);
contentPane.add(btnGe);
JButton btnSn = new JButton("Sn");
btnSn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('50')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnSn.setBackground(new Color(255, 105, 180));
btnSn.setBounds(912,232,66,58);
contentPane.add(btnSn);
JButton btnPb = new JButton("Pb");
btnPb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
47
48
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('7')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnN.setForeground(Color.RED);
btnN.setBackground(Color.CYAN);
btnN.setBounds(978,67,66,58);
contentPane.add(btnN);
JButton btnP = new JButton("P");
btnP.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('15')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnP.setForeground(Color.RED);
btnP.setBackground(Color.CYAN);
btnP.setBounds(978,122,66,58);
contentPane.add(btnP);
JButton btnAs = new JButton("As");
btnAs.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('33')");
System.out.println("success");
}
49
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnAs.setBackground(Color.GREEN);
btnAs.setBounds(978,177,66,58);
contentPane.add(btnAs);
JButton btnSb = new JButton("Sb");
btnSb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('51')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnSb.setBackground(Color.GREEN);
btnSb.setBounds(978,232,66,58);
contentPane.add(btnSb);
JButton btnBi = new JButton("Bi");
btnBi.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('83')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnBi.setBackground(new Color(255, 105, 180));
btnBi.setBounds(978,287,66,58);
50
contentPane.add(btnBi);
JButton btnUup = new JButton("Uup");
btnUup.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('115')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnUup.setBackground(new Color(255, 105, 180));
btnUup.setBounds(978,342,66,58);
contentPane.add(btnUup);
JButton btnO = new JButton("O");
btnO.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('8')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnO.setForeground(Color.RED);
btnO.setBackground(Color.CYAN);
btnO.setBounds(1044,67,66,58);
contentPane.add(btnO);
JButton btnS = new JButton("S");
btnS.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
51
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('16')");
System.out.println("success");
c
a
t
c
h
(
E
x
c
e
p
t
i
o
n
q
)
{
Syste
m.out.println("e
rror"+q);
}
}
}
)
;
btnS.setFor
eground(Co
lor.RED);
btnS.setBackg
round(Color.C
YAN);
btnS.setBou
nds(1044,1
22,66,58);
co
nt
en
tP
an
e.
ad
d(
bt
n
S)
;
JButton btnSe
= new
JButton("Se");
btnSe.addActionListener(n
ew ActionListener() {
public void
a
c
t
i
o
n
P
e
r
f
o
r
m
e
d
(
A
c
t
i
o
n
E
v
e
n
t
r
a
m
e
.
s
e
t
V
i
s
i
b
l
e
(
t
r
u
e
)
;
t
r
y
{
e
)
{
F
e
a
t
u
r
e
s
f
r
a
m
e
=
n
e
w
F
e
a
t
u
r
e
s
(
)
;
f
Class.forName("c
om.mysql.jdbc.D
river");
String
conurl="jdbc:mysql://localhost:3306
/periodicworld50";
co=DriverManager.getConnection(c
onurl,"root","password");
s
t
=
c
o
.
c
r
e
a
t
e
S
t
a
t
e
m
e
n
t
(
)
;
R
e
s
u
l
}
c
a
t
c
h
(
E
x
c
e
p
t
i
o
n
q
)
{
S
y
s
t
e
m
.
o
u
t
.
p
r
i
n
t
l
n
(
"
e
r
r
o
r
"
+
q
)
;
}
tSet res; }
st.exec }
uteUpd )
ate("ins ;
ert into
number btnSe.setFor
eground(Col
s
values(' or.RED);
34')"); btnSe.setBackg
System.round(Color.C
out.prin YAN);
tln("suc btnSe.setBou
cess"); nds(1044,17
7,66,58);
co
nte
ntP
ane
.ad
d(b
tnS
e);
JButton btnTe
= new
JButton("Te");
btnTe.addActionListener(n
ew ActionListener() {
public void
actionPerformed(ActionEvent e)
{
Features
frame =
new
Features(
);
f
r
a
m
e
.
s
e
t
V
i
s
i
b
l
e
(
t
r
u
e
)
;
t
r
y
{
Class.forName("c
om.mysql.jdbc.D
river");
String
conurl=
"jdbc:
mysql:/
/localh
ost:330
6/perio
dicworl
d50";
co=Dri
verMan
ager.get
Connec
tion(co
nurl,"ro
ot","pas
sword"
);
5
2
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('52')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTe.setBackground(Color.GREEN);
btnTe.setBounds(1044,232,66,58);
contentPane.add(btnTe);
JButton btnPo = new JButton("Po");
btnPo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('84')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnPo.setBackground(Color.GREEN);
btnPo.setBounds(1044,287,66,58);
contentPane.add(btnPo);
JButton btnLv = new JButton("Lv");
btnLv.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('116')");
System.out.println("success");
}
catch(Exception q)
{
53
System.out.println("error"+q);
}
}
});
btnLv.setBackground(new Color(255, 105, 180));
btnLv.setBounds(1044,342,66,58);
contentPane.add(btnLv);
JButton btnF = new JButton("F");
btnF.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('9')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnF.setBackground(new Color(255, 215, 0));
btnF.setBounds(1110,67,66,58);
contentPane.add(btnF);
JButton btnCl = new JButton("Cl");
btnCl.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('17')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCl.setBackground(new Color(255, 215, 0));
btnCl.setBounds(1110,122,66,58);
contentPane.add(btnCl);
54
55
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('85')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnAt.setBackground(new Color(255, 215, 0));
btnAt.setBounds(1110,287,66,58);
contentPane.add(btnAt);
JButton btnUus = new JButton("Uus");
btnUus.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('117')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnUus.setBackground(new Color(255, 215, 0));
btnUus.setBounds(1110,342,66,58);
contentPane.add(btnUus);
JButton btnHe = new JButton("He");
btnHe.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('2')");
System.out.println("success");
56
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnHe.setBackground(new Color(210, 105, 30));
btnHe.setBounds(1176,12,66,58);
contentPane.add(btnHe);
JButton btnNe = new JButton("Ne");
btnNe.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('10')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnNe.setBackground(new Color(210, 105, 30));
btnNe.setBounds(1176,67,66,58);
contentPane.add(btnNe);
JButton btnAr = new JButton("Ar");
btnAr.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('18')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
57
58
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('86')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRn.setBackground(new Color(210, 105, 30));
btnRn.setBounds(1176,287,66,58);
contentPane.add(btnRn);
JButton btnUuo = new JButton("Uuo");
btnUuo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('118')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnUuo.setBackground(new Color(210, 105, 30));
btnUuo.setBounds(1176,342,66,58);
contentPane.add(btnUuo);
59
60
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('58')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCe.setForeground(new Color(255, 0, 0));
btnCe.setBackground(new Color(72, 61, 139));
btnCe.setBounds(318,424,66,58);
contentPane.add(btnCe);
JButton btnTh = new JButton("Th");
btnTh.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('90')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTh.setForeground(new Color(50, 205, 50));
btnTh.setBackground(new Color(178, 34, 34));
btnTh.setBounds(318,479,66,58);
contentPane.add(btnTh);
JButton btnPr = new JButton("Pr");
btnPr.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('59')");
System.out.println("success");
61
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnPr.setForeground(new Color(255, 0, 0));
btnPr.setBackground(new Color(72, 61, 139));
btnPr.setBounds(384,424,66,58);
contentPane.add(btnPr);
JButton btnPa = new JButton("Pa");
btnPa.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('91')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnPa.setForeground(new Color(50, 205, 50));
btnPa.setBackground(new Color(178, 34, 34));
btnPa.setBounds(384,479,66,58);
contentPane.add(btnPa);
JButton btnNd = new JButton("Nd");
btnNd.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('60')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
62
}
});
btnNd.setForeground(new Color(255, 0, 0));
btnNd.setBackground(new Color(72, 61, 139));
btnNd.setBounds(450,424,66,58);
contentPane.add(btnNd);
JButton btnU = new JButton("U");
btnU.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('92')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnU.setForeground(new Color(50, 205, 50));
btnU.setBackground(new Color(178, 34, 34));
btnU.setBounds(450,479,66,58);
contentPane.add(btnU);
JButton btnPm = new JButton("Pm");
btnPm.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('61')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnPm.setForeground(new Color(255, 0, 0));
btnPm.setBackground(new Color(72, 61, 139));
btnPm.setBounds(516,424,66,58);
contentPane.add(btnPm);
63
64
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('94')");
System.out.println("success");
c
a
t
c
h
(
E
x
c
e
p
t
i
o
n
q
)
{
Syste
m.out.println("e
rror"+q);
}
}
}
)
;
btnPu.setForeground(ne
w Color(50, 205, 50));
btnPu.setBackground(ne
w Color(178, 34, 34));
btnPu.setBo
unds(582,47
9,66,58);
con
ten
tPa
ne.
add
(bt
nP
u);
JButton btnEu
= new
JButton("Eu");
btnEu.addActionListener(n
ew ActionListener() {
public void
actionPerformed(ActionEvent e)
{
Features
frame =
new
Features(
)
;
f
r
a
m
e
.
s
e
t
V
i
s
i
b
l
e
(
t
r
u
e
)
;
t
r
y
{
numbers values('63')");
Syste
m.out
.printl
n("su
ccess"
);
}
c
a
t
c
h
(
E
x
c
e
p
t
i
o
n
q
)
{
Syste
m.out.println("e
rror"+q);
Class.f
}
orNam }
e("com.}
mysql.j )
dbc.Dri ;
ver");
String btnEu.setForeground(
conurl=new Color(255, 0, 0));
"jdbc: btnEu.setBackground(ne
mysql:/ w Color(72, 61, 139));
/localh btnEu.setBo
ost:330 unds(648,42
6/perio 4,66,58);
dicworl con
d50"; tent
co=Dri Pan
verMane.a
ager.getdd(
Connec btn
tion(co Eu)
nurl,"ro ;
ot","pas
sword" JButton btnAm =
new
);
JButton("Am");
st=co.crbtnAm.addActionListener(n
eateStatew ActionListener() {
public void
ement()
actionPerformed(ActionEvent e)
;
ResultS {
Features
et res;
frame =
st.exec
new
uteUpd
Features(
ate("ins
);
ert into
f
r
a
m
e
.
s
e
t
V
i
s
i
b
l
e
(
t
r
u
e
)
;
t
r
y
{
Class.f
orNam
e("com.
mysql.j
dbc.Dri
ver");
String
conurl=
"jdbc:
mysql:/
/localh
ost:330
6/perio
dicworl
d50";
co=Dri
verMan
ager.get
Connec
tion(co
nurl,"ro
ot","pas
sword"
);
6
5
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('95')");
System.out.println("success");}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnAm.setForeground(new Color(50, 205, 50));
btnAm.setBackground(new Color(178, 34, 34));
btnAm.setBounds(648,479,66,58);
contentPane.add(btnAm);
JButton btnGd = new JButton("Gd");
btnGd.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('64')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnGd.setForeground(new Color(255, 0, 0));
btnGd.setBackground(new Color(72, 61, 139));
btnGd.setBounds(714,424,66,58);
contentPane.add(btnGd);
JButton btnCm = new JButton("Cm");
btnCm.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('96')");
System.out.println("success");
}
66
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCm.setForeground(new Color(50, 205, 50));
btnCm.setBackground(new Color(178, 34, 34));
btnCm.setBounds(714,479,66,58);
contentPane.add(btnCm);
JButton btnTb = new JButton("Tb");
btnTb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('65')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTb.setForeground(new Color(255, 0, 0));
btnTb.setBackground(new Color(72, 61, 139));
btnTb.setBounds(780,424,66,58);
contentPane.add(btnTb);
JButton btnBk = new JButton("Bk");
btnBk.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('97')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
67
68
btnHo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('67')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnHo.setForeground(new Color(255, 0, 0));
btnHo.setBackground(new Color(72, 61, 139));
btnHo.setBounds(912,424,66,58);
contentPane.add(btnHo);
JButton btnEs = new JButton("Es");
btnEs.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('99')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnEs.setForeground(new Color(50, 205, 50));
btnEs.setBackground(new Color(178, 34, 34));
btnEs.setBounds(912,479,66,58);
contentPane.add(btnEs);
JButton btnEr = new JButton("Er");
btnEr.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
69
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('68')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q); }
});
}
70
ResultSet res;
st.executeUpdate("insert into numbers values('69')");
System.out.println("success");}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnTm.setForeground(new Color(255, 0, 0));
btnTm.setBackground(new Color(72, 61, 139));
btnTm.setBounds(1044,424,66,58);
contentPane.add(btnTm);
JButton btnMd = new JButton("Md");
btnMd.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('101')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnMd.setForeground(new Color(50, 205, 50));
btnMd.setBackground(new Color(178, 34, 34));
btnMd.setBounds(1044,479,66,58);
contentPane.add(btnMd);
JButton btnYb = new JButton("Yb");
btnYb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('70')");
System.out.println("success");
}
catch(Exception q)
71
{
System.out.println("error"+q);
}
}
});
btnYb.setForeground(new Color(255, 0, 0));
btnYb.setBackground(new Color(72, 61, 139));
btnYb.setBounds(1110,424,66,58);
contentPane.add(btnYb);
JButton btnNo = new JButton("No");
btnNo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('102')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnNo.setForeground(new Color(50, 205, 50));
btnNo.setBackground(new Color(178, 34, 34));
btnNo.setBounds(1110,479,66,58);
contentPane.add(btnNo);
JButton btnLu = new JButton("Lu");
btnLu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res;
st.executeUpdate("insert into numbers values('71')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnLu.setForeground(new Color(255, 0, 0));
72
73
74
75
contentPane.add(btnL_1);
JButton btnE_1 = new JButton("E");
btnE_1.setForeground(new Color(248, 248, 255));
btnE_1.setBackground(new Color(0, 128, 128));
btnE_1.setBounds(577, 67, 43, 34);
contentPane.add(btnE_1);
JLabel lblNewLabel = new JLabel("New label");
lblNewLabel.setIcon(new ImageIcon("/home/student/Pictures/mendaleev.jpg"));
lblNewLabel.setBounds(300, 12, 1176, 821);
contentPane.add(lblNewLabel);
}
}
Features.java
package periodicworld;
import java.awt.*;
import javax.swing.*;
import java.sql.*;
public class Features extends JFrame {
private static JPanel contentPane;
static int ss;
static String si; static
String na; static String
sy; static String an;
String p,g,s,m,b,db,ec,mn;
static Connection co=null;
static Statement st=null;
private JTextField textField;
private JTextField textField_1; private
JTextField textField_2; private
JTextField textField_3; private
JTextField textField_4; private
JTextField textField_5; private
JTextField textField_6; private
JTextField textField_7; private
JTextField textField_8; private
JTextField textField_9;
private JTextField textField_10;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Features frame = new Features();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public Features() {
76
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1285, 684);
contentPane = new JPanel();
contentPane.setBackground(new Color(218, 165, 32));
contentPane.setForeground(new Color(255, 99, 71));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JLabel lblName = new JLabel("Name :");
lblName.setForeground(new Color(0, 255, 0));
lblName.setBounds(42, 54, 70, 15);
contentPane.add(lblName);
JLabel lblSymbol = new JLabel("Symbol");
lblSymbol.setForeground(new Color(124, 252, 0));
lblSymbol.setBounds(42, 115, 70, 15);
contentPane.add(lblSymbol);
JLabel lblAtomicName = new JLabel("Atomic number:");
lblAtomicName.setForeground(new Color(124, 252, 0));
lblAtomicName.setBounds(38, 177, 153, 15);
contentPane.add(lblAtomicName);
JButton btnCl = new JButton("PRINT");
btnCl.setFont(new Font("Dialog", Font.BOLD, 15));
btnCl.setBackground(new Color(173, 255, 47));
btnCl.setForeground(new Color(255, 0, 255));
btnCl.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
co=DriverManager.getConnection(conurl,"root","password");
st=co.createStatement();
ResultSet res; ResultSet
res1;
res1=st.executeQuery("select * from numbers");
while(res1.next())
{
si=res1.getString("sy");
ss=Integer.parseInt(si);
}
res=st.executeQuery("select * from elements");
System.out.println(ss);
for(int i=1;res.next();i++)
{
if(i==ss)
{
na=res.getString("name");
sy=res.getString("symbol");
an=res.getString("atomic_number");
mn=res.getString("mass_number");
p=res.getString("period");
g=res.getString("grou");
s=res.getString("state");
ec = res.getString("electronic_shell");
m=res.getString("melting_point");
b=res.getString("boiling_point");
db=res.getString("discovered_by");
77
}
}
System.out.println(na);
System.out.println(sy);
System.out.println(an);
System.out.println(mn);
System.out.println(p);
System.out.println(g);
System.out.println(s);
System.out.println(ec);
System.out.println(m);
System.out.println(b);
System.out.println(db);
78
textField_6.setText(s);
textField_6.setColumns(10);
textField_6.setBounds(500, 373, 235, 19);
contentPane.add(textField_6);
textField_7 = new JTextField();
textField_7.setBackground(new Color(221, 160, 221));
textField_7.setForeground(new Color(106, 90, 205));
textField_7.setText(ec);
textField_7.setColumns(10);
textField_7.setBounds(500, 422, 235, 19);
contentPane.add(textField_7);
textField_8 = new JTextField();
textField_8.setBackground(new Color(221, 160, 221));
textField_8.setForeground(new Color(106, 90, 205));
textField_8.setText(m);
textField_8.setColumns(10);
textField_8.setBounds(500, 485, 235, 19);
contentPane.add(textField_8);
textField_9 = new JTextField();
textField_9.setBackground(new Color(221, 160, 221));
textField_9.setForeground(new Color(106, 90, 205));
textField_9.setText(b);
textField_9.setColumns(10);
textField_9.setBounds(500, 535, 235, 19);
contentPane.add(textField_9);
textField_10 = new JTextField();
textField_10.setBackground(new Color(221, 160, 221));
textField_10.setForeground(new Color(106, 90, 205));
textField_10.setText(db);
textField_10.setColumns(10);
textField_10.setBounds(500, 593, 374, 19);
contentPane.add(textField_10);
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCl.setBounds(1006, 214, 117, 52);
contentPane.add(btnCl);
JLabel lblAtomicMass = new JLabel("Atomic mass:");
lblAtomicMass.setForeground(new Color(124, 252, 0));
lblAtomicMass.setBounds(42, 231, 153, 15);
contentPane.add(lblAtomicMass);
JLabel lblPeriod = new JLabel("Period");
lblPeriod.setForeground(new Color(124, 252, 0));
lblPeriod.setBounds(42, 284, 153, 15);
contentPane.add(lblPeriod);
JLabel lblGroup = new JLabel("Group");
lblGroup.setForeground(new Color(124, 252, 0));
lblGroup.setBounds(42, 329, 153, 15);
contentPane.add(lblGroup);
79
80
CHAPTER 3
3.1 CONCLUSION
The periodic table is the one of the most important achivements in the field of chemistry. The
information gained from the periodic table can open up numerous windows of knowledge about the
entire universe we live in. From this software we should have a much more in depth understamding
of the periodic table.
This project is developed for students to understand the details of elements as simple. This desktop
application has been designed in a well-defined and simple manner. This system can overcome the
limitations in the existing system. . The system is more flexible and can modified easily when ever
needed. This can reduce the human effort and also the time consuming. we can modify this project to
suit the requirements of the time and the future can be added it.
81