Вы находитесь на странице: 1из 91

PERIODIC WORLD

A project Report
Submitted to the

FACULITY OF DEPARTMENT OF COMPUTER ENGINEERING


By
SHIBU L
Reg. No: 13130050

In partial fulfilment of requirements


For the award
Of

DIPLOMA IN COMPUTER ENGINEERING

DEPARTMENT OF COMPUTER ENGINEERING


CENTRAL POLYTECHNIC COLLEGE
THIRUVANANTHAPURAM
OCTOBER 2015

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:

Department Of Computer Engineering

Date:

Central Polytechnic College,


Trivandrum

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 AND DESIGN


2.1 SYSTEM ANALYSIS

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

2.2 SYSTEM STUDY


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.

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.

The existing system has the following disadvantages,


The existing system only provides manual interface, which is not user-friendly as
Graphical User Interface.
It involves large amount of time consuming.
It involves limited amount of information.
Data inconsistency can be occurs.

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.

2.3 REQUIRMENT ANALYSIS


When analysed about the requirements of "Periodic World" to run on a system, it was found that it
requires only standard hardware and software systems paradigms.
2.3.1 SOFTWARE REQUIREMENT
Technology : JAVA
IDE : ECLIPSE
Backend

: 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

: Intel Core i5 Processor

RAM

: 4GB

Hard Disk Drive

: 500GB

2.4 SYSTEM DESIGN


System design is a reduction of an entire system by studying the various operations performed and
their relationship within the system and the requirements of its success. System design refers to the
description of a new system based on the information that is collected during the analysis phase and
the process by which it is developed. It is the creative process of inventing and developing new inputs,
data base procedures and outputs to meet the system objectives. System design built on the
information gathered during system analysis. The system analysis must have a clear cut understanding
about the objectives, which the design aims to fulfill.

2.4.1 OVERALL ARCHITECTURE


Periodic Table system is very much user friendly and assure a well and fully automated application
system through
The user has provision to view the structure of the periodic table
The user has provision to view the details of the elements

2.4.2 MODULE DESCRIPTION


The project involves modules are:
View periodic table
This module is used to view the periodic table structure. Each of the element is arranged in a
simple way. Each of the element is represented by a its symbol. These elements are arranged
in buttons and have different values. This module also arranged in different colours. These
colours are arranged in their property.
View the details
This module is used to view the details of choosen element in previous module. This module
involves the features of elements such as atomic number, mass number, symbol,states, etc.
These features are stored in a database. This can also retrived from users choice.

2.4.3 DATA FLOW DIAGRAM


A Data Flow Diagram (DFD) is a graphical representation of the flow of data through an information
system, modelling its process aspects. Often they are a preliminary step used to create an overview
of the system which can later be elaborated. DFDs can also be used for the visualization of data
processing (Structured Design). A DFD does not represent the procedural information.

LEVEL 0 - DFD

USER

PERIODIC WORLD

LEVEL 1 - DFD FOR ADMINISTRATOR LOGIN

VIEW
STRUCTURE

Table Details

USER
VIEW DETAILS

2.4.4 DATABASE DESIGN


The database design is a logical development in the methods used by computer to access and
manipulate data stored in the various parts of the computer system. A database is a collection of inter
related data stored with minimum redundancy to serve many users quickly and efficiently. Database
files are the key source of information into the system. The files should be properly designed and
planned for collection, accumulation, editing and retrieving the required information. This database
contains tables, where each tables corresponds to one particular type of information. Each piece of
information in the table is called a field or column. A table also contains records, which is set of fields.
There are primary key fields that uniquely identify a record in a table. The MYSQL database has been
chosen for developing the relevant database.
The following database features are used to store the various details that are involved in this software.

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

2. Table name: numbers


Field Type Null
sy
varchar(120)

Key
YES

Default Extra
NULL
9

2.4.6 SCREEN SHOTS

1. Home page

2. Structure page

10

3. Feature page

4. Isotopes page

11

2.4.7 SOURCE CODE

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);

JLabel lblPeriodicWorld = new JLabel("


PERIODIC WORLD");
lblPeriodicWorld.setForeground(new Color(0, 250, 154));
lblPeriodicWorld.setFont(new Font("Dialog", Font.BOLD | Font.ITALIC, 60));
lblPeriodicWorld.setBounds(160, 164, 1024, 224);
contentPane.add(lblPeriodicWorld);
JLabel lblIWishU = new JLabel("I wish U Will Continue.....!");
lblIWishU.setForeground(Color.RED);
lblIWishU.setFont(new Font("Dialog", Font.BOLD, 35));
lblIWishU.setBounds(66, 365, 561, 110);
contentPane.add(lblIWishU);
JButton btnContinue = new JButton("Continue-->>");
btnContinue.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Structure frame = new Structure();
frame.setVisible(true);
}
});
btnContinue.setBackground(Color.CYAN);
btnContinue.setBounds(1071, 528, 128, 49);

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.*;

public class Admin extends JFrame {


private JPanel contentPane; static
Connection con=null;
static Statement st=null;
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Admin frame = new Admin();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
}); try
{
Class.forName("com.mysql.jdbc.Driver");
String conurl="jdbc:mysql://localhost:3306/periodicworld50";
con=DriverManager.getConnection(conurl,"root","password");
}
catch(Exception e)
{
System.out.println("error"+e);
}
}
public Admin() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);

15

JButton btnInsert = new JButton("INSERT");


btnInsert.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try{
st=con.createStatement();
st.executeUpdate("insert into elements
values('Hydrogen','H','1','1.00794','1','1','Gas','1s1','- 259.2 C','- 252.8 C','Henry Cavendish in 1766')");
st.executeUpdate("insert into elements
values('Helium','He','2','4.002602','1','18','Gas','1s2','- 272.2 (26 atm) C','- 268.9 C','Sir Ramsey in 1895')");
st.executeUpdate("insert into elements
values('Lithium','Li','3','6.941','2','2','Solid','[He] 2s1','180.5 C','1342 C','Johann Arfvedson in 1817')");
st.executeUpdate("insert into elements
values('Berylium','Be','4','9.012182','2','2','Solid','[ He ] 2s2','1280 C','2970 C','Abb Ren-Just Hauy in
1798')");
st.executeUpdate("insert into elements
values('Boron','B','5','10.811','2','13','Solid','[ He ] 2s2 2p1','2076 C','3927 C','Sir Humphry Davy and J.L GayLussac in 1808')");
st.executeUpdate("insert into elements
values('Carbon','C','6','12.0107','2','14','Solid','[ He ] 2s2 2p2','3652 C','4827 C','The ancients')");
st.executeUpdate("insert into elements
values('Nitrogen','N','7','14.0067','2','15','Gas','[ He ] 2s2 2p3','-210 C','-195.8 C','Rutherford in 1772')");
st.executeUpdate("insert into elements
values('Oxygen','O','8','15.9994','2','16','Gas','[ He ] 2s2 2p4','-219 C','-183 C','Joseph Priestly in 1774')");
st.executeUpdate("insert into elements
values('Fluorin','F','9','18.9984032','2','17','Gas','[ He ] 2s2 2p5','-219.6 C','-188 C','Moissan in 1886')");
st.executeUpdate("insert into elements
values('Neon','Ne','10','20.1797','2','18','Gas','[ He ] 2s2 2p6','-249 C','-246 C','Sir Ramsay in 1898')");
st.executeUpdate("insert into elements
values('Sodium','Na','11','22.98976928','3','1','Solid','[Ne] 3s1','97.5 C','883 C','Sir Humphrey Davy in 1807')");
st.executeUpdate("insert into elements
values('Magnesium',
'Mg',
'12',
'24.3050' ,'3',
'2',
'Solid' ,'[Ne] 3s2' ,'650 C',
'1107 C',
'Sir Humphrey Davy in 1808')");
st.executeUpdate("insert into elements values('Aluminium', 'Al' ,'13',
'26.9815386',
'3',
'13',
'Solid' ,'[Ne] 3s2 3p1', '660.4 C', '2467 C',
'Hans Christian Oersted in 1825')");
st.executeUpdate("insert into elements values('Silicon',
'Si',
'14',
'28.0855',
'3'
,'14',
'Solid' ,'[Ne] 3s2 3p2' ,'1410 C', '3265 C',
'Jons Berzelius in 1823')");
st.executeUpdate("insert into elements
values('Phosphorus',
'P',
'15',
'30.973762',
'3',
'15',
'Solid' ,'[Ne] 3s2 3p3' ,'442 C',
'280 C',
'Hennig Brandt in 1669')");
st.executeUpdate("insert into elements values('Sulfur',
'S',
'16',
'32.065', '3',
'16',
'Solid', '[Ne] 3s2 3p4', '113 C',
'445 C',
'The ancients')");
st.executeUpdate("insert into elements values('Chlorine',
'Cl',
'17',
'35.453', '3',
'17',
'Gas', '[Ne] 3s2 3p5', '-101 C',
'-34.6 C',
'Carl Wilhelm Scheele in 1774')");
st.executeUpdate("insert into elements values('Argon',
'Ar',
'18',
'39.948', '3'
,'18',
'Gas', '[Ne] 3s2 3p6', '-189 C'
,'-185.7
C', 'Sir Ramsay in 1894')");
st.executeUpdate("insert into elements
values('Potassium' ,'K',
'19',
'39.0983',
'4',
'1',
'Solid', '[ Ar ] 4s1',
'63.2 C',
'760 C',
'Sir Davy in 1808')");

'Ca',
'20',
'40.078', '4',
Humphrey Davy in 1808')");

'4',

'3'

'2',

st.executeUpdate("insert into elements values('calcium',


'Solid', '[ Ar ] 4s2',
'840 C',
'1484 C',
'Sir

st.executeUpdate("insert into elements values('Scandium',


'Sc',
'21',
,'Solid', '[ Ar ] 3d1 4s2', '1541 C' ,'2836 C',
'Lars Nilson in 1879')");

st.executeUpdate("insert into elements values('Titanium' ,'Ti',


'22',
'47.867', '4',
Ar ] 3d1 4s2',
'1660 C',
'3287 C',
'William Gregor in 1791')");

16

'4',

'Solid', '[

'44.955912',

st.executeUpdate("insert into elements values('Vanadium',


'V',
'23',
'50.9415' ,'4',
'5',
'Solid', '[ Ar ] 3d3 4s2', '1910 C', '3407 C',
'Nils Sefstrom in 1830')");
st.executeUpdate("insert into elements values('Chromium',
'Cr',
'24',
'51.9961',
'4',
'Solid', '[ Ar ] 3d5 4s1', '1907 C', '2672 C',
'Vaughlin in 1797')");
st.executeUpdate("insert into elements values('Manganese',
'Mn'
,'25',
'54.938045',
'4',
'Solid', '[ Ar ] 3d5 4s2', '1247 C', '2061 C',
'Johann Gahn in 1774')");
st.executeUpdate("insert into elements values('Iron',
'Fe',
'26',
'55.845', '4',
'8'
,'Solid',
Ar ] 3d6 4s2',
'1536 C'
,'2861 C',
'The ancients')");
st.executeUpdate("insert into elements values('Cobalt', 'Co',
'27',
'58.933195'
,'4',
'9',
'Solid', '[ Ar ] 3d7 4s2', '1495 C', '2927 C',
'George Brandt in 1737')");
st.executeUpdate("insert into elements values('Nickel', 'Ni',
'28',
'58.6934' ,'4',
'10',
'Solid', '[ Ar ] 3d8 4s2' ,'1453 C', '2913 C',
'Alex Constedt 1751')");
st.executeUpdate("insert into elements values('Copper', 'Cu',
'29'
,'63.546', '4'
,'11'
,'Solid', '[ Ar ] 3d10 4s1', '1083 C', '2595 C',
'The ancients')");
st.executeUpdate("insert into elements values('Zinc',
'Zn',
'30',
'65.38' , '4',
'12'
,'Solid',
Ar ] 3d10 4s2', '420 C', '907 C',
'Andreas Marggraf in 1746')");
st.executeUpdate("insert into elements values('Gallium', 'Ga',
'31',
'69.723', '4',
'13',
'Solid'
'[ Ar ] 3d10 4s2 4p1',
'29.8 C',
'2204 C',
'The ancients')");
st.executeUpdate("insert into elements values('Germanium', 'Ge', '32',
'72.63', '4', '14', 'Solid',
'[ Ar ] 3d10 4s2 4p2'
,'937 C',
'2830 C',
'Clemens Winkler in 1886')");
st.executeUpdate("insert into elements values('Arsenic', 'As',
'33',
'74.92160',
'4',
'15',
'Solid', '[ Ar ] 3d10 4s2 4p3',
'814 C',
'615 C',
'The ancients')");
st.executeUpdate("insert into elements values('Selenium', 'Se',
'34',
'78.96', '4', '16', 'Solid', '[
Ar ] 3d10 4s2 4p4',
'217 C',
'688 C',
'Jons Berzelius 1817')");
st.executeUpdate("insert into elements values('Bromine', 'Br',
'35',
'79.904' ,'4',
'17',
'Liquid',
Ar ] 3d10 4s2 4p5',
'-7.2 C',
'58.8 C',
'Anthoine Balard in 1826')");
st.executeUpdate("insert into elements values('Krypton', 'Kr',
'36',
'83.798', '4',
'18',
'Gas',
'[ Ar ] 3d10 4s2 4p6',
'-157 C',
'- 153 C',
'Sir Ramsay in 1898')");
st.executeUpdate("insert into elements values('Rubidium' ,'Rb',
'37',
'85.4678',
'5'
,'1',
'Solid', '[ Kr ] 5s1',
'39 C', '696 C'
,'Robert Wilhem Bunsen and Gustav Robert
Kirchhoff in 1861')");
st.executeUpdate("insert into elements values('Strontium' ,'Sr',
'38',
'87.62', '5', '2', 'Solid',
'[
Kr ] 5s2', '769 C', '1384 C',
'Crawford in 1790')");
st.executeUpdate("insert into elements values('Yttrium', 'Y',
'39',
'88.90585',
'5',
'3'
,'Solid', '[ Kr ] 4d1 5s2', '1500 C', '3336 C',
'Johann Gadolin in 1794')");

'6',
'7',
'[

'[
,

'[

st.executeUpdate("insert into elements values('Zirconium'


,'Zr',
'40',
'91.224', '5',
'4',
'Solid',
Kr ] 4d2 5s2',
'1852 C',
'4400 C',
'Martin Klaproth in 1789')");
st.executeUpdate("insert into elements values('Niobium', 'Nb',
'41',
'92.90638',
'5',
'5',
'Solid', '[ Kr ] 4d4 5s1', '2410 C', '5100 C',
'Charles Hatchett 1801')");
st.executeUpdate("insert into elements values('Molybdenum', 'Mo',
'42',
'95.96' , '5', '6', 'Solid', '[
Kr ] 4d5 5s1',
'2610 C',
'4825 C',
'Carl Wilhelm Scheele in 1778')");
st.executeUpdate("insert into elements values('Technetium', 'Tc', '43'
,'97.9072',
'5',
'7',
'Solid', '[ Kr ] 4d6 5s1', '2200 C', '4877 C',
'Carlo Perrier in 1937')");
st.executeUpdate("insert into elements values('Ruthenium'
,'Ru',
'44'
,'101.07', '5'
,'8',
'Solid', '[ Kr ] 4d7 5s1' ,'2250 C', '4150 C'
,'Karl Klaus in 1844')");
st.executeUpdate("insert into elements values('Rhodium' , 'Rh', '45',
'102.90550'
,'5',
'9',
'Solid' , '[ Kr ] 4d8 5s1',
'1970 C',
'3727 C',
'William Wollaston in 1803')");
st.executeUpdate("insert into elements values('Palladium',
'Pd',
'46',
'106.42', '5',
'10',
'Solid',
Kr ] 4d9 5s1'
,'1560 C',
'2927 C'
,'William Wollaston in 1803')");
st.executeUpdate("insert into elements values('Silver',
'Ag',
'47',
'107.8682',
'5',
'11',
'Solid', '[ Kr ] 4d10 5s1', '962 C', '2212 C',
'The ancients')");
st.executeUpdate("insert into elements values('Cadmium',
'Cd',
'48',
'112.411', '5',
'12',
'Solid', '[ Kr ] 4d10 5s2', '321 C', '767 C',
'Fredrich Stromeyer in 1817')");
st.executeUpdate("insert into elements values('Indium', 'In',
'49',
'114.818', '5',
'13',
'Solid', '[ Kr ] 4d10 5s2 5p1',
'156 C',
'2000 C',
'Ferdinand Reich 1863')");
st.executeUpdate("insert into elements values('Tin',
'Sn',
'50',
'118.710', '5',
'14',
'Solid', '[ Kr ] 4d10 5s2 5p2',
'232 C',
'2270 C',
'The ancients')");
st.executeUpdate("insert into elements values('Antimony',
'Sb',
'51',
'121.760',
'5',
'15',
'Solid', '[ Kr ] 4d10 5s2 5p3',
'631 C',
'1587 C',
'The ancients')");
st.executeUpdate("insert into elements values('Tellurium',
'Te',
'52',
'127.60', '5',
'16',
'Solid',
Kr ] 4d10 5s2 5p4',
'450 C',
'1390 C',
'Franz Muller von Reichenstein in 1782')");

17

'[

'[

'[

st.executeUpdate("insert into elements values('Iodine',


'I',
'Solid', '[ Kr ] 4d10 5s2 5p5',
'114 C',
st.executeUpdate("insert into elements values('Xenon', 'Xe',
'18',
'Gas',
'[ Kr ] 4d10 5s2 5p6', '-112 C',
st.executeUpdate("insert into elements values('Caesium', 'Cs',
'Solid', '[ Xe ] 6s1',
'28.4 C', '669 C',
st.executeUpdate("insert into elements values('Barium', 'Ba',
'Solid', '[ Xe ] 6s2',
'725 C', '1640 C',
st.executeUpdate("insert into elements values('Lanthanum',
'Solid', '[ Xe ] 5d1 6s2', '826 C', '0.186 nm',

'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')");

st.executeUpdate("insert into elements values('Cerium', 'Ce',


'58',
'140.116', '6',
'_',
'Solid', '[ Xe ] 4f1 5d1 6s2', '799 C',
'3426 C',
'W. von Hisinger in 1903')");
st.executeUpdate("insert into elements values('Praseodymium','Pr', '59',
'140.90765',
'6',
'_',
'Solid', '[ Xe ] 4f3 6s2', '931 C', '3512 C',
'von Welsbach in 1885')");
st.executeUpdate("insert into elements values('Neodymium', 'Nd',
'60',
'144.242',
'6',
'_',
'Solid', '[Xe] 4f16s2',
'1024 C', '3074 C',
'Carl Auer von Welsbach in 1885')");
st.executeUpdate("insert into elements values('Promethium', 'Pm',
'61',
'145',
'6', '_', 'Solid', '[
Xe ] 4f5 6s2',
'1168 C',
'2460 C',
'Marinsky 1945')");
st.executeUpdate("insert into elements values('Samarium',
'Sm',
'62',
'150.36', '6', '_', 'Solid', '[
Xe ] 4f6 6s2',
'1072 C',
'1790 C',
'Paul Emile Lecoq de Boisbaudran in 1879')");
st.executeUpdate("insert into elements values('Europium',
'Eu',
'63',
'151.964',
'6',
'_',
'Solid', '[ Xe ] 4f12 6s2', '1522 C', '2510 C',
'Carl Mosander in 1843')");
st.executeUpdate("insert into elements values('Gadolinium', 'Gd', '64',
'157.25', '6',
'_',
'Solid', '[
Xe ] 4f7 5d1 6s2','1313 C',
'3266 C',
'Jean de Marignac in 1880')");
st.executeUpdate("insert into elements values('Terbium', 'Tb',
'65',
'158.92535',
'6',
'_',
'Solid', '[ Xe ] 4f9 6s2', '1360 C', '3041 C',
'Carl Mosander in 1843')");
st.executeUpdate("insert into elements values('Dysprosium', 'Dy', '66',
'162.500',
'6',
'_',
'Solid', '[ Xe ] 4f10 6s2', '1412 C', '2562 C',
'Paul Emile Lecoq de Boisbaudran in 1886')");
st.executeUpdate("insert into elements values('Holmium',
'Ho',
'67',
'164.93032',
'6',
'_',
'Solid', '[ Xe ] 4f11 6s2', '1474 C', '2695 C',
'J.L. Soret in 1878')");
st.executeUpdate("insert into elements values('Erbium', 'Er','68', '167.259',
'6',
'_',
'Solid', '[ Xe ] 4f12 6s2', '1522 C', '2510 C',
'Carl Mosander in 1843')");
st.executeUpdate("insert into elements values('Thulium', 'Tm',
'69',
'168.93421',
'6',
'_',
'Solid', '[ Xe ] 4f13 6s2', '1545 C', '1947 C',
'Theodore Cleve 1879')");
st.executeUpdate("insert into elements values('Ytterbium',
'Yb',
'70',
'173.054',
'6',
'_',
'Solid', '[ Xe ] 4f14 6s2', '824 C', '1466 C',
'Jean de Marignac in 1878')");
st.executeUpdate("insert into elements values('Lutetium', 'Lu',
'71',
'174.9668',
'6',
'_',
'Solid', '[ Xe ] 4f14 5d1 6s2',
'1663 C',
'3395 C',
'George Urbain in 1907')");
st.executeUpdate("insert into elements values('Lutetium', 'Hf',
'72',
'178.49', '6',
'4',
'Solid', '[
Xe ] 4f14 5d2 6s2', '2200 C',
'5200 C',
'Dirk Coster in 1923')");
st.executeUpdate("insert into elements values('Tantalum', 'Ta',
'73',
'180.94788',
'6',
'5',
'Solid', '[ Xe ] 4f14 5d3 6s2',
'2850 C',
'6000 C',
'Anders Ekeberg in 1802')");
st.executeUpdate("insert into elements values('Tungsten', 'W',
'74',
'183.84', '6',
'6',
'Solid', '[
Xe ] 4f14 5d4 6s2', '3410 C',
'5660 C',
'Fausto and Juan Jose de Elhuyar in 1783')");
st.executeUpdate("insert into elements values('Rhenium', 'Re',
'75',
'186.207',
'6',
'7',
'Solid', '[ Xe ] 4f14 5d5 6s2',
'3170 C',
'5627 C',
'Walter Noddack in 1925')");
st.executeUpdate("insert into elements values('Osmium', 'Os',
'76',
'190.23', '6',
'8',
'Solid', '[
Xe ] 4f14 5d6 6s2', '3045 C',
'5027 C',
'Smithson Tennant in 1803')");
st.executeUpdate("insert into elements values('Iridium', 'Ir',
'77',
'192.217',
'6',
'9',
'Solid', '[ Xe ] 4f14 5d7 6s2',
'2450 C', '4527 C',
'Smithson Tennant in 1804')");
st.executeUpdate("insert into elements values('Platinum', 'Pt',
'78',
'195.084',
'6',
'10',
'Solid', '[ Xe ] 4f14 5d9 6s1',
'1772 C', '3800 C',
'Julius Scaliger in 1735')");
st.executeUpdate("insert into elements values('Gold',
'Au',
'79',
'196.966569',
'6',
'11',
'Solid', '[ Xe ] 4f14 5d10 6s1',
'1062 C',
'2000 C',
'c.a. 3000 BC')");
st.executeUpdate("insert into elements values('Mercury', 'Hg',
'80',
'200.59', '6',
'12',
'Liquid', '[
Xe ] 4f14 5d10 6s2',
'-38.9 C', '356.6 C',
'The ancients')");
st.executeUpdate("insert into elements values('Thallium', 'Ti',
'81',
'204.3833',
'6',
'13',
'Solid', '[ Xe ] 4f14 5d10 6s2 6p1', '304 C', '1473 C',
'Sir William Crookes in 1861')");
st.executeUpdate("insert into elements values('Lead',
'Pb',
'82',
'207.2', '6', '14', 'Solid', '[
Xe ] 4f14 5d10 6s2 6p2', '327 C', '1755 C',
'The ancients')");

18

st.executeUpdate("insert into elements values('Bismuth', 'Bi',


'83',
'208.98040',
'6',
'15',
'Solid', '[ Xe ] 4f14 5d10 6s2 6p3', '271 C', '1420 C',
'The ancients')");
st.executeUpdate("insert into elements values('Polonium',
'Po',
'84',
'208.9824',
'6',
'16',
'Solid', '[ Xe ] 4f14 5d10 6s2 6p4', '254 C', '962 C',
'pierre and Marie Curie in 1898')");
st.executeUpdate("insert into elements values('Astatine', 'At',
'85',
'209.9871',
'6',
'17',
'Solid', '[ Xe ] 4f14 5d10 6s2 6p5', '302 C', '337 C',
'D.R. Corson 1940')");
st.executeUpdate("insert into elements values('Radon', 'Rn',
'86',
'222.0176',
'6',
'18',
'Gas',
'[ Xe ] 4f14 5d10 6s2 6p6', '-71 C',
'-62 C',
'Fredrich Ernst Dorn
in 1898')");
st.executeUpdate("insert into elements values('Francium', 'Fr',
'87',
'223',
'7', '1', 'Solid', '[
Rn ] 7s1',
'27 C', '677 C', 'Marguerite Perey in 1939')");
st.executeUpdate("insert into elements values('Radium', 'Ra',
'88',
'226',
'7', '2',
'Solid', '[ Rn ] 7s2',
'700 C',
'1140 C',
'Pierre and Marie Curie 1898')");
st.executeUpdate("insert into elements values('Actinium', 'Ac',
'89',
'227',
'7', '_', 'Solid', '[
Rn ] 6d1 7s2',
'1050 C', '3250 C',
'Andr Debierne in 1899')");
st.executeUpdate("insert into elements values('Thorium', 'Th',
'90',
'232.03806',
'7',
'_',
'Solid', '[ Rn ] 6d2 7s2',
'1750 C', '4790 C',
'Jons Berzelius in 1828')");
st.executeUpdate("insert into elements values('Protactinium', 'Pa', '91',
'231.03588',
'7',
'_',
'Solid', '[ Rn ] 5f2 6d1 7s2', '1600 C', 'Unknown',
'K. Kajans and O.H. Gohring in
1913')");
st.executeUpdate("insert into elements values('Uranium', 'U',
'92',
'238.02891',
'7',
'_',
'Solid', '[ Rn ] 5f3 6d1 7s2', '1132 C', '3818 C',
'Martin Klaproth 1789')");
st.executeUpdate("insert into elements values('Neptunium',
'Np',
'93',
'237',
'7',
'_',
'Solid', '[
Rn ] 5f6', '640 C',
'3902 C',
'McMillan in 1940')");
st.executeUpdate("insert into elements values('Plutonium',
'Pu',
'94',
'244',
'7', '_',
Rn ] 5f6 7s2',
'641 C', '3232 C',
'G.T. Seaborg in 1940')");
st.executeUpdate("insert into elements values('Americium',
'Am',
'95',
'243',
'7', '_',
Rn ] 5f7 7s2',
'994 C', '2607 C',
'G.T. Seaborg in 1945')");
st.executeUpdate("insert into elements values('Curium', 'Cm',
'96',
'247',
'7', '_',
'Solid', '[ Rn ] 5f7 6d1 7s2', '1340 C', 'Unknown',
'G.T. Seaborg in 1944')");
st.executeUpdate("insert into elements values('Berkelium',
'Bk',
'97',
'247',
'7', '_',
Rn ] 5f8 6d1 7s2', 'Unknown', 'Unknown',
'G.T. Seaborg 1949')");
st.executeUpdate("insert into elements values('Californium', 'Cf', '98',
'251',
'7', '_', 'Solid',
Rn ] 5f9 6d1 7s2', 'Unknown', 'Unknown',
'G.T. Seaborg in 1950')");
st.executeUpdate("insert into elements values('Einsteinium', 'Es', '99',
'252',
'7', '_', 'Solid',
Rn ] 5f10 6d1 7s2', 'Unknown', 'Unknown',
'Argonne at the University of California in 1952')");

'Solid',

'[

'Solid',

'[

'Solid',

'[

'[
'[

st.executeUpdate("insert into elements values('Fermium', 'Fm',


'100',
'257',
'7', '_', 'Solid', '[
Rn ] 5f11 6d1 7s2', 'Unknown', 'Unknown',
'Ghiorso in 1952')");
st.executeUpdate("insert into elements values('Mendelevium', 'Md',
'101',
'258',
'7', '_', 'Solid', '[
Rn ] 5f12 6d1 7s2', 'Unknown', 'Unknown',
'G.T. Seaborg in 1955')");
st.executeUpdate("insert into elements values('Nobelium',
'No',
'102',
'259',
'7', '_', 'Solid', '[
Rn ] 5f13 6d1 7s2', 'Unknown', 'Unknown',
'Nobel Institute for Physics in 1957')");
st.executeUpdate("insert into elements values('Lawrencium', 'Lr', '103',
'262',
'7', '_', 'Solid', '[
Rn ] 5f14 6d1 7s2', 'Unknown', 'Unknown',
'Albert Ghiorso in 1961')");
st.executeUpdate("insert into elements values('Rutherfordium', 'Rf',
'104',
'261',
'7', '4', 'Unknown',
'[ Rn] 5f14 6d2 7s2',
'Unknown', 'Unknown',
'Lord Rutherford of Nelson')");
st.executeUpdate("insert into elements values('Dubnium', 'Db',
'105',
'262',
'7', '5', 'Unknown',
'[ Rn] 5f14 6d3 7s2',
'Unknown', 'Unknown',
'Albert Ghiorso in 1970')");
st.executeUpdate("insert into elements values('Seaborgium', 'Sg', '106',
'266',
'7', '6', 'Unknown',
'[ Rn] 7s2 5f14 6d4',
'Unknown', 'Unknown',
'Albert Ghiorso in 1974')");
st.executeUpdate("insert into elements values('Bohrium', 'Bh',
'107',
'264',
'7', '7', 'Unknown',
'[Rn] 5f14 6d5 7s2',
'Unknown',
'Unknown',
'Peter Armbruster and
Gottfried Munzenber in 1976')");
st.executeUpdate("insert into elements values('Hassium', 'Hs',
'108',
'277',
'7', '8', 'Unknown',
'[Rn] 5f14 6d6 7s2',
'Unknown',
'Unknown',
'Peter Armbruster and Gottfried
Munzenber in 1984')");
st.executeUpdate("insert into elements values('Meitnerium', 'Mt', '109',
'268',
'7', '9', 'Unknown',
' [Rn] 5f14 6d7 7s2',
'Unknown',
'Unknown',
'Heavy Ion Research
Laboratory in 1982')");

19

st.executeUpdate("insert into elements values('Darmstadtium', 'Ds',


'110',
' [Rn] 5f14 6d8 7s2',
'Unknown', 'Unknown',
'Unknown')");
st.executeUpdate("insert into elements values('Roentgenium', 'Rg',
'111',
'[Rn] 5f14 6d9 7s2',
'Unknown', 'Unknown',
'Unknown')");
st.executeUpdate("insert into elements values('Copernicium', 'Cn',
'112',
'[Rn] 5f14 6d10 7s2',
'Unknown',
'Unknown',
F.P. Hessbuger in 1996')");
st.executeUpdate("insert into elements values('Ununtrium',
'Uut',
'113',
'[Rn] 5f14 6d10 7s2 7p1',
'Unknown',
'Unknown',
'Unknown')");

'271',

'7', '10', 'Unknown',

'272',

'7', '11', 'Unknown',

'285',
'7', '12', 'Unknown',
'S. Hofmann, V. Ninov and
'284',

'7', '13', 'Unknown',

st.executeUpdate("insert into elements values('Flerovium',


'Fl',
'114',
'289',
'7', '14', 'Unknown',
' [Rn] 5f14 6d10 7s2 7p2', 'Unknown', 'Unknown',
'Dubna (Joint Institute for
Nuclear Research) in Russia, jan 1999')");
st.executeUpdate("insert into elements values('Ununpentium', 'Uup', '115', '288',
'7', '15', 'Unknown',
'[Rn] 5f14 6d10 7s2 7p3',
'Unknown',
'Unknown' , 'Unknown')");
st.executeUpdate("insert into elements values('Ununpentium', 'Lv',
'[Rn] 5f14 6d10 7s2 7p4',
'Unknown', 'Unknown',
National Laboratory')");
st.executeUpdate("insert into elements values('Ununseptium', 'Uus', '117',
' [Rn] 5f14 6d10 7s2 7p5', 'Unknown',
'Unknown','Unknown')");
st.executeUpdate("insert into elements values('Ununoctium', 'uuo',
5f14 6d10 7s2 7p6','Unknown','Unknown','Unknown')");

'116',
'292',
'7', '16', 'Unknown',
'The Lawrence Berkeley
'294',

'7', '17', 'Unknown',

'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

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('11')");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnNa.setBackground(new Color(255, 69, 0));
btnNa.setBounds(54, 122, 66, 58);
contentPane.add(btnNa);
JButton btnK = new JButton("K");
btnK.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('19')");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnK.setBackground(new Color(255, 69, 0));
btnK.setBounds(54, 177, 66, 58);
contentPane.add(btnK);
JButton btnRb = new JButton("Rb");
btnRb.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('37')");
System.out.println("success");

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

btnFr.setBackground(new Color(255, 69, 0));


btnFr.setBounds(54, 342, 66, 58);
contentPane.add(btnFr);
JButton btnBe = new JButton("Be");
btnBe.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('4')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnBe.setBackground(new Color(255, 127, 80));
btnBe.setBounds(120, 67, 66, 58);
contentPane.add(btnBe);
JButton btnMg= new JButton("Mg");
btnMg.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('12')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnMg.setBackground(new Color(255, 127, 80));
btnMg.setBounds(120, 122, 66, 58);
contentPane.add(btnMg);
JButton btnCa = new JButton("Ca");
btnCa.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

24

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('20')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCa.setBackground(new Color(255, 127, 80));
btnCa.setBounds(120, 177, 66, 58);
contentPane.add(btnCa);
JButton btnSr = new JButton("Sr");
btnSr.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('38')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnSr.setBackground(new Color(255, 127, 80));
btnSr.setBounds(120, 232, 66, 58);
contentPane.add(btnSr);
JButton btnBa = new JButton("Ba");
btnBa.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");

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);

JButton btnY = new JButton("Y");


btnY.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('39')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnY.setBackground(new Color(0, 191, 255));
btnY.setBounds(186,232,66,58);
contentPane.add(btnY);

JButton btnA = new JButton("");


btnA.setBackground(new Color(72, 61, 139));
btnA.setBounds(186,287,66,58);
contentPane.add(btnA);
JButton btnL = new JButton("");
btnL.setBackground(new Color(178, 34, 34));
btnL.setBounds(186,342,66,58);
contentPane.add(btnL);

JButton btnTi = new JButton("Ti");


btnTi.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");

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

st.executeUpdate("insert into numbers values('42')");


System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnMo.setBackground(new Color(0, 191, 255));
btnMo.setBounds(384,232,66,58);
contentPane.add(btnMo);
JButton btnW = new JButton("W");
btnW.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('74')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnW.setBackground(new Color(0, 191, 255));
btnW.setBounds(384,287,66,58);
contentPane.add(btnW);
JButton btnSg = new JButton("Sg");
btnSg.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('106')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}

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

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('75')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRe.setBackground(new Color(0, 191, 255));
btnRe.setBounds(450,287,66,58);
contentPane.add(btnRe);
JButton btnBh = new JButton("Bh");
btnBh.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('107')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnBh.setBackground(new Color(0, 191, 255));
btnBh.setBounds(450,342,66,58);
contentPane.add(btnBh);
JButton btnFe = new JButton("Fe");
btnFe.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");

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

JButton btnRh = new JButton("Rh");


btnRh.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('45')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnRh.setBackground(new Color(0, 191, 255));
btnRh.setBounds(582,232,66,58);
contentPane.add(btnRh);
JButton btnIr = new JButton("Ir");
btnIr.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('77')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnIr.setBackground(new Color(0, 191, 255));
btnIr.setBounds(582,287,66,58);
contentPane.add(btnIr);
JButton btnMt = new JButton("Mt");
btnMt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{

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

btnDs.setBackground(new Color(0, 191, 255));


btnDs.setBounds(648,342,66,58);
contentPane.add(btnDs);
JButton btnCu = new JButton("Cu");
btnCu.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('29')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCu.setBackground(new Color(0, 191, 255));
btnCu.setBounds(714,177,66,58);
contentPane.add(btnCu);
JButton btnAg = new JButton("Ag");
btnAg.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('47')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnAg.setBackground(new Color(0, 191, 255));
btnAg.setBounds(714,232,66,58);
contentPane.add(btnAg);
JButton btnAu = new JButton("Au");
btnAu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();

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

JButton btnAl = new JButton("Al");


btnAl.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('13')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnAl.setBackground(new Color(255, 105, 180));
btnAl.setBounds(846,122,66,58);
contentPane.add(btnAl);
JButton btnGa = new JButton("Ga");
btnGa.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('31')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnGa.setBackground(new Color(255, 105, 180));
btnGa.setBounds(846,177,66,58);
contentPane.add(btnGa);
JButton btnIn = new JButton("In");
btnIn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");

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

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('82')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnPb.setBackground(new Color(255, 105, 180));
btnPb.setBounds(912,287,66,58);
contentPane.add(btnPb);
JButton btnFl = new JButton("Fl");
btnFl.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('114')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnFl.setBackground(new Color(255, 105, 180));
btnFl.setBounds(912,342,66,58);
contentPane.add(btnFl);
JButton btnN = new JButton("N");
btnN.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");

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

JButton btnBr = new JButton("Br");


btnBr.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('35')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnBr.setBackground(new Color(255, 215, 0));
btnBr.setBounds(1110,177,66,58);
contentPane.add(btnBr);
JButton btnI = new JButton("I");
btnI.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('53')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnI.setBackground(new Color(255, 215, 0));
btnI.setBounds(1110,232,66,58);
contentPane.add(btnI);
JButton btnAt = new JButton("At");
btnAt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);
try
{
Class.forName("com.mysql.jdbc.Driver");

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

btnAr.setBackground(new Color(210, 105, 30));


btnAr.setBounds(1176,122,66,58);
contentPane.add(btnAr);
JButton btnKr = new JButton("Kr");
btnKr.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('36')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnKr.setBackground(new Color(210, 105, 30));
btnKr.setBounds(1176,177,66,58);
contentPane.add(btnKr);
JButton btnXe = new JButton("Xe");
btnXe.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('54')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnXe.setBackground(new Color(210, 105, 30));
btnXe.setBounds(1176,232,66,58);
contentPane.add(btnXe);
JButton btnRn = new JButton("Rn");
btnRn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();

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);

JButton btnLa = new JButton("La");


btnLa.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

59

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('57')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnLa.setForeground(new Color(255, 0, 0));
btnLa.setBackground(new Color(72, 61, 139));
btnLa.setBounds(252,424,66,58);
contentPane.add(btnLa);
JButton btnAc = new JButton("Ac");
btnAc.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('89')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnAc.setForeground(new Color(50, 205, 50));
btnAc.setBackground(new Color(178, 34, 34));
btnAc.setBounds(252,479,66,58);
contentPane.add(btnAc);
JButton btnCe = new JButton("Ce");
btnCe.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";

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

JButton btnNp = new JButton("Np");


btnNp.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('93')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnNp.setForeground(new Color(50, 205, 50));
btnNp.setBackground(new Color(178, 34, 34));
btnNp.setBounds(516,479,66,58);
contentPane.add(btnNp);
JButton btnSm = new JButton("Sm");
btnSm.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('62')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnSm.setForeground(new Color(255, 0, 0));
btnSm.setBackground(new Color(72, 61, 139));
btnSm.setBounds(582,424,66,58);
contentPane.add(btnSm);
JButton btnPu = new JButton("Pu");
btnPu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Features frame = new Features();
frame.setVisible(true);

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

btnBk.setForeground(new Color(50, 205, 50));


btnBk.setBackground(new Color(178, 34, 34));
btnBk.setBounds(780,479,66,58);
contentPane.add(btnBk);
JButton btnDy = new JButton("Dy");
btnDy.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('66')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnDy.setForeground(new Color(255, 0, 0));
btnDy.setBackground(new Color(72, 61, 139));
btnDy.setBounds(846,424,66,58);
contentPane.add(btnDy);
JButton btnCf = new JButton("Cf");
btnCf.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('98')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnCf.setForeground(new Color(50, 205, 50));
btnCf.setBackground(new Color(178, 34, 34));
btnCf.setBounds(846,479,66,58);
contentPane.add(btnCf);
JButton btnHo = new JButton("Ho");

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); }
});
}

btnEr.setForeground(new Color(255, 0, 0));


btnEr.setBackground(new Color(72, 61, 139));
btnEr.setBounds(978,424,66,58);
contentPane.add(btnEr);
JButton btnFm = new JButton("Fm");
btnFm.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('100')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnFm.setForeground(new Color(50, 205, 50));
btnFm.setBackground(new Color(178, 34, 34));
btnFm.setBounds(978,479,66,58);
contentPane.add(btnFm);
JButton btnTm = new JButton("Tm");
btnTm.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();

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

btnLu.setBackground(new Color(72, 61, 139));


btnLu.setBounds(1176,424,66,58);
contentPane.add(btnLu);
JButton btnLr = new JButton("Lr");
btnLr.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('103')");
System.out.println("success");
}
catch(Exception q)
{
System.out.println("error"+q);
}
}
});
btnLr.setForeground(new Color(50, 205, 50));
btnLr.setBackground(new Color(178, 34, 34));
btnLr.setBounds(1176,479,66,58);
contentPane.add(btnLr);
JTextPane txtpnAlkaliMetals = new JTextPane();
txtpnAlkaliMetals.setForeground(new Color(124, 252, 0));
txtpnAlkaliMetals.setText(" \n
Alkali\n Metals");
txtpnAlkaliMetals.setBackground(new Color(255, 69, 0));
txtpnAlkaliMetals.setBounds(263, 587, 83, 58);
contentPane.add(txtpnAlkaliMetals);
JTextPane txtpnAlkalineEarth = new JTextPane();
txtpnAlkalineEarth.setForeground(new Color(0, 255, 0));
txtpnAlkalineEarth.setText("\n Alkaline\n Earth");
txtpnAlkalineEarth.setBackground(new Color(255, 99, 71));
txtpnAlkalineEarth.setBounds(385, 587, 83, 58);
contentPane.add(txtpnAlkalineEarth);
JTextPane txtpnTransitionMetals = new JTextPane();
txtpnTransitionMetals.setForeground(new Color(255, 0, 0));
txtpnTransitionMetals.setText(" \n Transition \n Metals");
txtpnTransitionMetals.setBackground(new Color(0, 191, 255));
txtpnTransitionMetals.setBounds(516, 587, 83, 58);
contentPane.add(txtpnTransitionMetals);
JTextPane txtpnBasicMetals = new JTextPane();
txtpnBasicMetals.setForeground(new Color(0, 255, 255));
txtpnBasicMetals.setText(" \n Basic\n Metals");
txtpnBasicMetals.setBackground(new Color(255, 105, 180));
txtpnBasicMetals.setBounds(655, 587, 83, 58);
contentPane.add(txtpnBasicMetals);
JTextPane txtpnSemiMetals = new JTextPane();

73

txtpnSemiMetals.setForeground(new Color(199, 21, 133));


txtpnSemiMetals.setText("\n Semi \n metals");
txtpnSemiMetals.setBackground(new Color(0, 255, 0));
txtpnSemiMetals.setBounds(791, 587, 83, 58);
contentPane.add(txtpnSemiMetals);
JTextPane txtpnNonMetals = new JTextPane();
txtpnNonMetals.setForeground(new Color(139, 69, 19));
txtpnNonMetals.setText("\n Non \n metals");
txtpnNonMetals.setBackground(new Color(0, 255, 255));
txtpnNonMetals.setBounds(930, 587, 83, 58);
contentPane.add(txtpnNonMetals);
JTextPane txtpnHalogens = new JTextPane();
txtpnHalogens.setForeground(new Color(138, 43, 226));
txtpnHalogens.setText("\n Halogens");
txtpnHalogens.setBackground(new Color(255, 215, 0));
txtpnHalogens.setBounds(1069, 587, 83, 58);
contentPane.add(txtpnHalogens);
JTextPane txtpnNobleGas = new JTextPane();
txtpnNobleGas.setForeground(new Color(255, 105, 180));
txtpnNobleGas.setText("\n Noble \n Gas");
txtpnNobleGas.setBackground(new Color(160, 82, 45));
txtpnNobleGas.setBounds(1195, 587, 83, 58);
contentPane.add(txtpnNobleGas);
JTextPane txtpnActinides = new JTextPane();
txtpnActinides.setForeground(new Color(124, 252, 0));
txtpnActinides.setText("\n Actinides");
txtpnActinides.setBackground(new Color(178, 34, 34));
txtpnActinides.setBounds(136, 587, 83, 58);
contentPane.add(txtpnActinides);
JTextPane txtpnLanthanides = new JTextPane();
txtpnLanthanides.setForeground(new Color(124, 252, 0));
txtpnLanthanides.setText("\nLanthanides");
txtpnLanthanides.setBackground(new Color(72, 61, 139));
txtpnLanthanides.setBounds(22, 587, 83, 58);
contentPane.add(txtpnLanthanides);
JButton btnNewButton = new JButton(" I S O T O P E S ");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Isotopes frame = new Isotopes();
frame.setVisible(true);
}
});
btnNewButton.setBackground(new Color(0, 128, 0));
btnNewButton.setForeground(new Color(250, 128, 114));
btnNewButton.setBounds(1059, 680, 178, 25);
contentPane.add(btnNewButton);
JButton btnP_1 = new JButton("P");
btnP_1.setForeground(new Color(248, 248, 255));
btnP_1.setBackground(new Color(0, 128, 128));
btnP_1.setBounds(368, 10, 43, 34);
contentPane.add(btnP_1);
JButton btnE = new JButton("E");
btnE.setForeground(new Color(248, 248, 255));

74

btnE.setBackground(new Color(0, 128, 128));


btnE.setBounds(398, 10, 43, 34);
contentPane.add(btnE);
JButton btnR = new JButton("R");
btnR.setForeground(new Color(240, 255, 240));
btnR.setBackground(new Color(0, 128, 128));
btnR.setBounds(435, 10, 43, 34);
contentPane.add(btnR);
JButton btnI_1 = new JButton("I");
btnI_1.setForeground(new Color(248, 248, 255));
btnI_1.setBackground(new Color(0, 128, 128));
btnI_1.setBounds(466, 10, 43, 34);
contentPane.add(btnI_1);
JButton btnO_1 = new JButton("0");
btnO_1.setForeground(new Color(248, 248, 255));
btnO_1.setBackground(new Color(0, 128, 128));
btnO_1.setBounds(507, 10, 43, 34);
contentPane.add(btnO_1);
JButton btnD = new JButton("D");
btnD.setForeground(new Color(248, 248, 255));
btnD.setBackground(new Color(0, 128, 128));
btnD.setBounds(550, 10, 49, 34);
contentPane.add(btnD);
JButton btnI_2 = new JButton("I");
btnI_2.setForeground(new Color(248, 248, 255));
btnI_2.setBackground(new Color(0, 128, 128));
btnI_2.setBounds(592, 10, 43, 34);
contentPane.add(btnI_2);
JButton btnC_1 = new JButton("C");
btnC_1.setForeground(new Color(248, 248, 255));
btnC_1.setBackground(new Color(0, 128, 128));
btnC_1.setBounds(635, 10, 43, 34);
contentPane.add(btnC_1);
JButton btnT = new JButton("T");
btnT.setForeground(new Color(248, 248, 255));
btnT.setBackground(new Color(0, 128, 128));
btnT.setBounds(435, 67, 43, 34);
contentPane.add(btnT);
JButton btnA_1 = new JButton("A");
btnA_1.setForeground(new Color(248, 248, 255));
btnA_1.setBackground(new Color(0, 128, 128));
btnA_1.setBounds(466, 67, 43, 34);
contentPane.add(btnA_1);
JButton btnB_1 = new JButton("B");
btnB_1.setForeground(new Color(248, 248, 255));
btnB_1.setBackground(new Color(0, 128, 128));
btnB_1.setBounds(495, 67, 43, 34);
contentPane.add(btnB_1);
JButton btnL_1 = new JButton("L");
btnL_1.setForeground(new Color(248, 248, 255));
btnL_1.setBackground(new Color(0, 128, 128));
btnL_1.setBounds(536, 67, 43, 34);

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);

textField = new JTextField();


textField.setBackground(new Color(221, 160, 221));
textField.setForeground(new Color(106, 90, 205));
textField.setText(na);
textField.setBounds(500, 52, 235, 19);
contentPane.add(textField);
textField.setColumns(10);
textField_1 = new JTextField();
textField_1.setBackground(new Color(221, 160, 221));
textField_1.setForeground(new Color(106, 90, 205));
textField_1.setText(sy);
textField_1.setColumns(10);
textField_1.setBounds(500, 113, 235, 19);
contentPane.add(textField_1);
textField_2 = new JTextField();
textField_2.setBackground(new Color(221, 160, 221));
textField_2.setForeground(new Color(106, 90, 205));
textField_2.setText(an);
textField_2.setColumns(10);
textField_2.setBounds(500, 175, 235, 19);
contentPane.add(textField_2);
textField_3 = new JTextField();
textField_3.setBackground(new Color(221, 160, 221));
textField_3.setForeground(new Color(106, 90, 205));
textField_3.setText(mn);
textField_3.setColumns(10);
textField_3.setBounds(500, 229, 235, 19);
contentPane.add(textField_3);
textField_4 = new JTextField();
textField_4.setBackground(new Color(221, 160, 221));
textField_4.setForeground(new Color(106, 90, 205));
textField_4.setText(p);
textField_4.setColumns(10);
textField_4.setBounds(500, 282, 235, 19);
contentPane.add(textField_4);
textField_5 = new JTextField();
textField_5.setBackground(new Color(221, 160, 221));
textField_5.setForeground(new Color(106, 90, 205));
textField_5.setText(g);
textField_5.setColumns(10);
textField_5.setBounds(500, 329, 235, 19);
contentPane.add(textField_5);
textField_6 = new JTextField();
textField_6.setBackground(new Color(221, 160, 221));
textField_6.setForeground(new Color(106, 90, 205));

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

JLabel lblState = new JLabel("State:");


lblState.setForeground(new Color(124, 252, 0));

lblState.setBounds(42, 375, 153, 15);


contentPane.add(lblState);
JLabel lblElectronicShell = new JLabel("Electronic Shell:");
lblElectronicShell.setForeground(new Color(124, 252, 0));
lblElectronicShell.setBounds(38, 424, 153, 15);
contentPane.add(lblElectronicShell);
JLabel lblMeltingPoint = new JLabel("Melting Point");
lblMeltingPoint.setForeground(new Color(124, 252, 0));
lblMeltingPoint.setBounds(38, 487, 153, 15);
contentPane.add(lblMeltingPoint);
JLabel lblBoilingPoint = new JLabel("Boiling Point:");
lblBoilingPoint.setForeground(new Color(0, 255, 0));
lblBoilingPoint.setBounds(42, 539, 153, 15);
contentPane.add(lblBoilingPoint);
JLabel lblDiscoveredBy = new JLabel("Discovered By:");
lblDiscoveredBy.setForeground(new Color(0, 255, 0));
lblDiscoveredBy.setBounds(42, 595, 153, 15);
contentPane.add(lblDiscoveredBy);
JButton btnNewButton = new JButton("HOME");
btnNewButton.setForeground(new Color(255, 0, 255));
btnNewButton.setFont(new Font("Dialog", Font.BOLD, 15));
btnNewButton.setBackground(new Color(124, 252, 0));
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
home frame = new home();
frame.setVisible(true);
}
});
btnNewButton.setBounds(1006, 370, 117, 52);
contentPane.add(btnNewButton);
JLabel lblNewLabel = new JLabel("New label");
lblNewLabel.setIcon(new ImageIcon("/home/student/Pictures/Chemical_elements.jpg"));
lblNewLabel.setBounds(12, 0, 1261, 732);
contentPane.add(lblNewLabel);
}
}

80

CHAPTER 3

CONCLUSION AND FUTURE ENHANCEMENT

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.

3.2 FUTURE ENHANCEMENT


The purpose of future enhancement is to make updating in the developed software as the need arises
and when new technology is comes. In this software there are only few features of each elements.
Such as atomic number, mass number, melting and boiling point etc. This software only includes
limitted number of elements(118). It is unlikely that new discoveries would undo all that we already
know. There is speculation that the creation of an eighth period would result in the necessity for a
new electron block and that super-elements would reveal some new and unique elemental properties,
but the current theory shows that they should follow some trend.

81

Вам также может понравиться