Labels

Saturday, October 20, 2012

What is Clean Code

Hi Friends,

These days I'm reading a book about clean code. so thought of sharing some new things I have learned. Thing I was wondering when reading was, Why do we write Bad codes????  What is Clean Code???

 WHY do we write bad code?? 

  • Can be because of the rush, deadline is so near and have to do to complete so many functionalists.
  •  Boss would be angry with you if you took the time to clean up your code.
  • Perhaps you were just tired of working on this program and wanted it to be over. 


Some times when we write codes we think of cleaning up the code later after we done writing the whole program or some times we plan to do it tomorrow or many be next week. like wise when we delay to clean the code , code get more messy and difficult to clean the mess. 

LeBlanc’s law: Later equals never.


What is clean Code???


what is clean code? this is the Big question I had when I was reading. Simply if You write a piece of code that should be easily understandable for others. code should be elegant and efficient. The logic should be straightforward to make it hard for bugs to hide.

  •  Contains no duplication;
  •  Expresses all the design ideas that are in the system
This is the 'Big' Dave Thomas's idea about the clean code,
" Clean code can be read, and enhanced by a developer other than its original author. It has unit and acceptance tests. It has meaningful names. It provides one way rather than many ways for doing one thing. It has minimal dependencies, which are explicitly defined, and provides a clear and minimal API. Code should be literate since depending on the  language, not all necessary information can be expressed clearly in code alone "
“Big” Dave Thomas, founder of OTI, godfather of the Eclipse strategy

After reading this post hope You guys get an idea of What is clean code.
Have Fun :)
  



Playful Kiss


Playful kiss Korean drama , this is one of my favorite Korean drama. A girl(Oh Ha Ni) who has a crush on a genies boy  (Baek Seung Jo). Every episode in this drama is really fun. All the crazy things the Oh ha ni doing, sometimes i feel really sorry about her. but she is really a cute character in the drama. Baek Seung Jo he is little rude in the start , he is a serious and genies character. The person i really Love in this drama is Baek Seung Jo's MOM she is the BEST mom ever. she helps Oh ha Ni to get his sons heart. MOM is 100% cool love her lodes she makes the whole story interesting.  Baek Seung Jo's little brother is really cute but he is also a serious character like his elder brother.



Cast
  • Kim Hyun Joong as Baek Seung Jo
  • Jung So Min as Oh Ha Ni
  • Jung Hye Young as Hwang Geum Hee (Seung Jo's mother)
  • Choi Won Hong as Baek Eun Jo (Seung Jo's brother)

Monday, October 8, 2012

Setting up a Moodle Site


Hi Friends,


I have learned how to setup the moodle and play around with it. It is really simple to install and use. Moodle is an Open source, Course Management System (CMS) also known as a Learning Management System (LMS). There are so many things you can do using moodle :)


Lets see how to install Moodle to the local machine.(in similar way you can setup it in a web server)

  •  First of all Go to the Moodle web site and download the required Moodle package.( Before downloading check the required PHP and Mysql versions)
  • If you are using xampp put the unzipped file(moodle) in to the htdocs.
  • Create a database as MoodleDB(can give any name ) and change the collation to UTF8_Unicode_ci
Now its almost done , now only few more steps to do to finish installing Moodle.

STEP 1
it's simple few steps more , just go to chrome and type 
http://localhost/moodle/ 
(Make sure the Apache is  running )

You will get this installation page , choose English and click next. click on next to all the other pages until u get in to the step 2

STEP 2

Give the database name as MoodleDB (one we created in the beginning), Give the username and password. leave the other fields as it is. and click on next.
Click on the continue button until u get into step 3

STEP 3


 Fill the necessary details and click on Update profile

STEP4



Give a name for the site and fill other details and click on Save changers.
Now we are done installing moodle to the local machine. You can play around with it and find new interesting features in it.

 hope you guys can install it using those steps easily Have fun friends.

Sunday, January 8, 2012

Creating a shopping cart GUI

hi friends,
I have done a simple shopping cart GUI class using. It is really easy to create this GUI.
I have applied  Action listener to submit and remove buttons. those will call some other classes that are not exactly related to the creation of GUI class.

I have used Box layout a lot doing this GUI. but its really simple hope u guys can understand this easily





import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.Enumeration;

import javax.swing.*;


public class lap extends JFrame implements ActionListener{

public JButton btnP,btnR,Sub,btnD,btnH,btnV,rem;
public JRadioButton Rb1,Rb2,Rb3,Rb4,ans,Rb10;
public JRadioButton Rb5,Rb6,Rb7,Rb8,Rb9;
public JRadioButton Rb11,Rb12,Rb13,Rb14,Rb15;
public JRadioButton Rb20,Rb16,Rb17,Rb18,Rb19;
public JRadioButton Rb25,Rb21,Rb22,Rb23,Rb24;
public JLabel pl1,pl2,pl3,pl4,pl5;
public ButtonGroup BG1,BG2,BG3,BG4,BG5;
public JLabel l1,l2,l3,l4,l5;
public Container con;
public String[] Sary;
public lap() {
Sary= new String[5];
for(int x=0;x<Sary.length;x++)
       Sary[x]=" ";
this.setVisible(true);
this.setSize(600,435);
con= getContentPane();
con.setLayout(null);
final Box b1= Box.createVerticalBox();
final Box b2= Box.createVerticalBox();
final Box b3= Box.createVerticalBox();
final Box b4= Box.createVerticalBox();
final Box b5= Box.createVerticalBox();
final Box first= Box.createVerticalBox();
final Box buy= Box.createVerticalBox();
final Box choz= Box.createVerticalBox();
con.setBackground(Color.white);
l1= new JLabel("");
l2= new JLabel("");
l3= new JLabel("");
l4= new JLabel("");
l5= new JLabel("");
first.setVisible(true);
first.setBounds(125, 0, 275, 450);
first.setBorder(BorderFactory.createTitledBorder(" "));
con.add(first);
buy.setVisible(true);
buy.setBounds(400, 0, 200, 450);
buy.setBorder(BorderFactory.createTitledBorder("Selected items"));
con.add(buy);
BG1=new ButtonGroup();
BG2= new ButtonGroup();
BG3= new ButtonGroup();
BG4= new ButtonGroup();
BG5= new ButtonGroup();

//Processors
Rb1= new JRadioButton("Core i3 2.10Ghz(2310M)");
Rb2= new JRadioButton("Core i5 2.30Ghz(2410M)");
Rb3= new JRadioButton("Core i5 2.40Ghz(2430M))");
Rb4= new JRadioButton("Core i7 2.0Ghz(QM2630)");
Rb5= new JRadioButton("Core-i7 2.2Ghz(QM2670)");
pl1=new JLabel("Price - Rs.123 ");
pl2=new JLabel("Price - Rs 2 "); 
pl3=new JLabel("Price - Rs 3 ");
pl4=new JLabel("Price - Rs 4 ");
pl5=new JLabel("Price - Rs 5 ");
ImageIcon p1 = new ImageIcon("images\\p1.jpg");
JLabel Lp1 = new JLabel(" ", p1, JLabel.CENTER);
BG1.add(Rb1);
BG1.add(Rb2);
BG1.add(Rb3);
BG1.add(Rb4);
BG1.add(Rb5);
b1.add( Box.createRigidArea(new Dimension(0,10)));

b1.add(Rb1);
b1.add(pl1);
b1.add( Box.createRigidArea(new Dimension(0,8)));
b1.add(Rb2);
b1.add(pl2);
b1.add( Box.createRigidArea(new Dimension(0,8)));
b1.add(Rb3);
b1.add(pl3);
b1.add( Box.createRigidArea(new Dimension(0,8)));
b1.add(Rb4);
b1.add(pl4);
b1.add( Box.createRigidArea(new Dimension(0,8)));
b1.add(Rb5);
b1.add(pl5);
b1.add(Lp1);
Rb1.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[0]= Rb1.getText(); 
             l2.setText(Sary[0]);
            }}});
Rb2.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[0]= Rb2.getText(); 
             l2.setText(Sary[0]);
            }}});
Rb3.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[0]= Rb3.getText(); 
             l2.setText(Sary[0]);
            }}});
Rb4.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[0]= Rb4.getText(); 
             l2.setText(Sary[0]);
            }}});
Rb5.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[0]= Rb5.getText(); 
             l2.setText(Sary[0]);
            }}});
b1.setVisible(false);
b1.setBounds(125, 0, 275, 450);
b1.setBorder(BorderFactory.createTitledBorder(" "));
btnP=new JButton(" Processors ");
btnP.setMaximumSize(new Dimension(120, 25));

con.add(b1);
btnP.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         b1.setVisible(true); 
         b2.setVisible(false);
         b3.setVisible(false);
         b4.setVisible(false);
         b5.setVisible(false);
         first.setVisible(false);
         }});
//Ram
Rb10= new JRadioButton("1GB DDR3");
Rb9= new JRadioButton("2GB DDR3");
Rb6= new JRadioButton("4GB DDR3");
Rb7= new JRadioButton("6GB DDR3");
Rb8= new JRadioButton("8GB DDR3");
pl1=new JLabel("Price - Rs.223 ");
pl2=new JLabel("Price - Rs 2 "); 
pl3=new JLabel("Price - Rs 3 ");
pl4=new JLabel("Price - Rs 222 ");
pl5=new JLabel("Price - Rs 22222 ");
ImageIcon r1 = new ImageIcon("images\\R1.jpg");
JLabel R1 = new JLabel(" ", r1, JLabel.CENTER);
BG2.add(Rb10);
BG2.add(Rb9);
BG2.add(Rb6);
BG2.add(Rb7);
BG2.add(Rb8);
b2.add( Box.createRigidArea(new Dimension(0,20)));
b2.add(Rb10);
b2.add(pl1);
b2.add( Box.createRigidArea(new Dimension(0,8)));
b2.add(Rb9);
b2.add(pl2);
b2.add( Box.createRigidArea(new Dimension(0,8)));
b2.add(Rb6);
b2.add(pl3);
b2.add( Box.createRigidArea(new Dimension(0,8)));
b2.add(Rb7);
b2.add(pl4);
b2.add( Box.createRigidArea(new Dimension(0,8)));
b2.add(Rb8);
b2.add(pl5);
b2.add( Box.createRigidArea(new Dimension(0,10)));
b2.add(R1);
Rb9.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[1]= Rb9.getText(); 
             l3.setText(Sary[1]);
            }}});
Rb10.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[1]= Rb10.getText(); 
             l3.setText(Sary[1]);
            }}});
Rb6.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[1]= Rb6.getText(); 
             l3.setText(Sary[1]);
            }}});
Rb7.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[1]= Rb7.getText(); 
             l3.setText(Sary[1]);
            }}});
Rb8.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[1]= Rb8.getText(); 
             l3.setText(Sary[1]);
            }}});
b2.setVisible(false);
b2.setBounds(125, 0, 275, 450);
b2.setBorder(BorderFactory.createTitledBorder(" "));
btnR=new JButton("RAM");
btnR.setMaximumSize(new Dimension(120, 25));
con.add(b2);
btnR.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         b2.setVisible(true);   
         b1.setVisible(false);
         b3.setVisible(false);
         b4.setVisible(false);
         b5.setVisible(false);
         first.setVisible(false);
         
         }});
//Hard
Rb11= new JRadioButton("250GB");
Rb12= new JRadioButton("320GB");
Rb13= new JRadioButton("500GB");
Rb14= new JRadioButton("640GB");
Rb15= new JRadioButton("750GB");
pl1=new JLabel("Price - Rs.323 ");
pl2=new JLabel("Price - Rs 33 "); 
pl3=new JLabel("Price - Rs 3 ");
pl4=new JLabel("Price - Rs 3322 ");
pl5=new JLabel("Price - Rs 32222 ");
ImageIcon h1 = new ImageIcon("images\\Lh1.jpg");
JLabel hd1 = new JLabel(" ", h1, JLabel.CENTER);
BG3.add(Rb15);
BG3.add(Rb11);
BG3.add(Rb12);
BG3.add(Rb13);
BG3.add(Rb14);
b3.add( Box.createRigidArea(new Dimension(0,20)));
b3.add(Rb15);
b3.add(pl1);
b3.add( Box.createRigidArea(new Dimension(0,8)));
b3.add(Rb11);
b3.add(pl2);
b3.add( Box.createRigidArea(new Dimension(0,8)));
b3.add(Rb12);
b3.add(pl3);
b3.add( Box.createRigidArea(new Dimension(0,8)));
b3.add(Rb13);
b3.add(pl4);
b3.add( Box.createRigidArea(new Dimension(0,8)));
b3.add(Rb14);
b3.add(pl5);
// b3.add( Box.createRigidArea(new Dimension(0,10)));
b3.add(hd1);
Rb15.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[2]= Rb15.getText(); 
             l4.setText(Sary[2]);
            }}});
Rb11.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[2]= Rb11.getText(); 
             l4.setText(Sary[2]);
            }}});
Rb12.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[2]= Rb12.getText(); 
             l4.setText(Sary[2]);
            }}});
Rb13.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[2]= Rb13.getText(); 
             l4.setText(Sary[2]);
            }}});
Rb14.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[2]= Rb14.getText(); 
             l4.setText(Sary[2]);
            }}});
b3.setVisible(false);
b3.setBounds(125, 0, 275, 450);
b3.setBorder(BorderFactory.createTitledBorder(" "));
btnH=new JButton("HDD");
btnH.setMaximumSize(new Dimension(120, 25));
con.add(b3);
btnH.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         b3.setVisible(true);   
         b1.setVisible(false);
         b2.setVisible(false);
         b4.setVisible(false);
         b5.setVisible(false);
         first.setVisible(false);
         
         }});
//Disply
Rb20= new JRadioButton("14\" WXGA");
Rb19= new JRadioButton("14.1\" wxga");
Rb16= new JRadioButton("15\" XGA ");
Rb17= new JRadioButton("15.4\"WXGA");
Rb18= new JRadioButton("17\"WUXGA");
pl1=new JLabel("Price - Rs.423 ");
pl2=new JLabel("Price - Rs 43 "); 
pl3=new JLabel("Price - Rs 4 ");
pl4=new JLabel("Price - Rs 4322 ");
pl5=new JLabel("Price - Rs 42222 ");
Rb19.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[3]= Rb19.getText(); 
             l5.setText(Sary[3]);
            }}});
Rb20.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[3]= Rb20.getText(); 
             l5.setText(Sary[3]);
            }}});
Rb16.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[3]= Rb16.getText(); 
             l5.setText(Sary[3]);
            }}});
Rb17.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[3]= Rb17.getText(); 
             l5.setText(Sary[3]);
            }}});
Rb18.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[3]= Rb18.getText(); 
             l5.setText(Sary[3]);
            }}});
ImageIcon s1 = new ImageIcon("images\\LS1.jpg");
JLabel ls1 = new JLabel(" ", s1, JLabel.CENTER);
BG4.add(Rb20);
BG4.add(Rb19);
BG4.add(Rb16);
BG4.add(Rb17);
BG4.add(Rb18);
b4.add( Box.createRigidArea(new Dimension(0,50)));
b4.add(Rb20);
b4.add(pl1);
b4.add( Box.createRigidArea(new Dimension(0,8)));
b4.add(Rb19);
b4.add(pl2);
b4.add( Box.createRigidArea(new Dimension(0,8)));
b4.add(Rb16);
b4.add(pl3);
b4.add( Box.createRigidArea(new Dimension(0,8)));
b4.add(Rb17);
b4.add(pl4);
b4.add( Box.createRigidArea(new Dimension(0,8)));
b4.add(Rb18);
b4.add(pl5);
b4.add(ls1);
b4.setVisible(false);
b4.setBounds(125, 0, 275, 450);
b4.setBorder(BorderFactory.createTitledBorder(" "));
btnV=new JButton("SCREEN");
btnV.setMaximumSize(new Dimension(120, 25));
con.add(b4);
btnV.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         b4.setVisible(true);   
         b1.setVisible(false);
         b3.setVisible(false);
         b2.setVisible(false);
         b5.setVisible(false);
         first.setVisible(false);
         
         }});
//typ
pl1=new JLabel("Price - Rs.423 ");
pl2=new JLabel("Price - Rs 43 "); 
pl3=new JLabel("Price - Rs 4 ");
pl4=new JLabel("Price - Rs 4322 ");
pl5=new JLabel("Price - Rs 42222 ");
final Box hb1= Box.createHorizontalBox();
final Box hb2= Box.createHorizontalBox();
final Box hb3= Box.createHorizontalBox();
final Box hb4= Box.createHorizontalBox();
final Box hb11= Box.createHorizontalBox();
final Box hb12= Box.createHorizontalBox();
;
ImageIcon i1 = new ImageIcon("images\\LM1.jpg");
JLabel LM1 = new JLabel(" ", i1, JLabel.CENTER);
ImageIcon i2 = new ImageIcon("images\\LM2.jpg");
JLabel LM2 = new JLabel(" ", i2, JLabel.CENTER);
ImageIcon i3 = new ImageIcon("images\\LM3.jpg");
JLabel LM3 = new JLabel(" ", i3, JLabel.CENTER);
ImageIcon i4 = new ImageIcon("images\\LM4.jpg");
JLabel LM4 = new JLabel(" ", i4, JLabel.CENTER);
ImageIcon i5 = new ImageIcon("images\\LM5.jpg");
JLabel LM5 = new JLabel(" ", i5, JLabel.CENTER);
Rb21= new JRadioButton("HP Probook 4530s");
Rb22= new JRadioButton("HP Pavilion DV6");
Rb23= new JRadioButton("Dell Vostro");
Rb24= new JRadioButton("Dell Inspiron N5110");
Rb25= new JRadioButton("Acer Aspire 5750");
BG5.add(Rb21);
BG5.add(Rb22);
BG5.add(Rb23);
BG5.add(Rb24);
BG5.add(Rb25);
// b5.add( Box.createRigidArea(new Dimension(0,50)));
hb1.add(LM1);
hb2.add(Rb21);
hb11.add(pl1);
hb11.add( Box.createRigidArea(new Dimension(10,0)));
hb11.add(pl2);
hb1.add(LM2);
hb2.add(Rb22);
b5.add(hb1);
b5.add(hb2);
b5.add(hb11);
//b5.add( Box.createRigidArea(new Dimension(0,5)));
hb3.add(LM3);
hb4.add(Rb23);
hb3.add(LM4);
hb4.add(Rb24);
hb12.add(pl3);
hb12.add( Box.createRigidArea(new Dimension(10,0)));
hb12.add(pl4);
b5.add(hb3);
b5.add(hb4);
b5.add(hb12);
b5.add(LM5);
b5.add(Rb25);
b5.add(pl5);

Rb21.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[4]= Rb21.getText(); 
             l1.setText(Sary[4]);
            }}});
Rb22.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[4]= Rb22.getText(); 
             l1.setText(Sary[4]);
            }}});
Rb23.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[4]= Rb23.getText(); 
             l1.setText(Sary[4]);
            }}});
Rb24.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[4]= Rb24.getText(); 
             l1.setText(Sary[4]);
            }}});
Rb25.addActionListener( new ActionListener() {           
            public void actionPerformed(ActionEvent e) {{
            Sary[4]= Rb25.getText(); 
             l1.setText(Sary[4]);
            }}});
b5.setVisible(false);
b5.setBounds(125, 0, 275, 450);
b5.setBorder(BorderFactory.createTitledBorder(" "));
btnD=new JButton("MODEL");
btnD.setMaximumSize(new Dimension(120, 25));
con.add(b5);
btnD.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         b5.setVisible(true);   
         b1.setVisible(false);
         b3.setVisible(false);
         b4.setVisible(false);
         b2.setVisible(false);
         first.setVisible(false);
         
         }});
//Submit
Sub = new JButton(" SUBMIT ");
Sub.setMaximumSize(new Dimension(120, 25));
Sub.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         
                  for(int x=0;x<Sary.length;x++)
                 System.out.println(Sary[x]);
                  
                  ProductsSelectionLaptop1 PSL1 =new ProductsSelectionLaptop1();
                  
                  try {
                 setVisible(false);
PSL1.getPrice(Sary);
} catch (ClassNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (SQLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
         }});
buy.add(l1);
buy.add(l2);
buy.add(l3);
buy.add(l4);
buy.add(l5);
//remove
rem = new JButton(" Remove ");
rem.setMaximumSize(new Dimension(120, 25));
rem.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         for(int x=0;x<Sary.length;x++)
                 Sary[x]=" ";
         
         l1.setText(" ");
         l2.setText(" ");
         l3.setText(" ");
         l4.setText(" ");
         l5.setText(" ");
                   
         }});

choz.add( Box.createRigidArea(new Dimension(0,50)));
choz.add(btnD);
choz.add( Box.createRigidArea(new Dimension(0,5)));
choz.add(btnP);
choz.add( Box.createRigidArea(new Dimension(0,5)));
choz.add(btnR);
choz.add( Box.createRigidArea(new Dimension(0,5)));
choz.add(btnH);
choz.add( Box.createRigidArea(new Dimension(0,5)));
choz.add(btnV);
buy.add( Box.createRigidArea(new Dimension(0,50)));
ImageIcon image = new ImageIcon("images\\1.jpg");
JLabel label1 = new JLabel(" ", image, JLabel.CENTER);
buy.add(label1);
buy.add(Sub);
buy.add(rem);
choz.setBorder(BorderFactory.createTitledBorder("Choose "));
choz.setBounds(0, 0, 125, 450);
con.add(choz);
}
  
   public void back(String[] ar){
    for(int x=0;x<5;x++){
    Sary[x]= ar[x];
    }
   
            l2.setText(Sary[0]);
            l3.setText(Sary[1]);
            l4.setText(Sary[2]);
            l5.setText(Sary[3]);
            l1.setText(Sary[4]);
            
   }


@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}

}