Add to Favorites    Make Home Page 9608 Online  
 Language Categories  
 Our Services  

Home » Java Home » Java Applets Home » PAYROLL MANAGEMENT SYSTEM

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title PAYROLL MANAGEMENT SYSTEM
Author PATTABIRAMAN.R
Author Email RPRTECH [at] GMAIL.COM
Description This entirely deals with the Employee payroll managemnt system based
upon
his working days,PF etc...
Category Java » Java Applets
Hits 87452
Code Select and Copy the Code
import java.io.*; import java.awt.*; import java.awt.Color.*; import java.awt.event.*; import java.applet.*; /*<applet code=train2.class height=300 width=600></applet>*/ public class train2 extends Applet implements ActionListener,ItemListener { Label name,amount,seats,number; TextField na,am,sts,nr; TextArea t; Choice css; Checkbox si,sr; CheckboxGroup g; Button b,cancel; int s,c,d; int n1=400; int n2=250; int n3=100; public void init() { setBackground(Color.yellow); setForeground(Color.red); setLayout(new FlowLayout()); na=new TextField(20); am=new TextField(20); sts=new TextField(20); nr=new TextField(20); name=new Label("NAME"); amount=new Label("AMOUNT"); seats=new Label("SEATS"); number=new Label("REQUIRED NO OF SEATS"); css=new Choice(); css.add("A.C SLEEPER"); css.add("FIRST CLASS"); css.add("SECOND CLASS"); t=new TextArea(40,45); g=new CheckboxGroup(); si=new Checkbox("SATAPTI",g,false); sr=new Checkbox("SABARI",g,false); b=new Button("SUBMIT"); cancel=new Button("CANCEL"); add(name); add(na); add(seats); add(sts); add(number); add(nr); add(si); add(sr); add(css); add(b); add(amount); add(am); add(t); add(cancel); css.addItemListener(this); b.addActionListener(this); si.addItemListener (this); sr.addItemListener (this); } public void actionPerformed(ActionEvent ae) { if(b.getActionCommand().equals("SUBMIT")) { d=Integer.parseInt(nr.getText()); s=(Integer.parseInt(sts.getText()))-d; if(css.getSelectedItem().equals("A.C SLEEPER")) { am.setText("400"); } else if(css.getSelectedItem().equals("FIRST CLASS")) { am.setText("250"); } else { am.setText("100"); } } c=((Integer.parseInt(am.getText()))*(Integer.parseInt(nr.getText()))); t.setText("NAME:"+na.getText()+" "+"After reservation total no.of seats are:" +s+" "+"Train name :"+g.getSelectedCheckbox().getLabel()+" "+"Class:"+ css.getSelectedItem()+ "Total number of Rs :"+c); if(cancel.getActionCommand().equals("CANCEL")) { repaint(); } } public void itemStateChanged(ItemEvent ie) { } } import java.io.*; import java.awt.*; import java.awt.Color.*; import java.awt.event.*; import java.applet.*; /*<applet code=train2.class height=300 width=600></applet>*/ public class train2 extends Applet implements ActionListener,ItemListener { Label name,amount,seats,number; TextField na,am,sts,nr; TextArea t; Choice css; Checkbox si,sr; CheckboxGroup g; Button b,cancel; int s,c,d; int n1=400; int n2=250; int n3=100; public void init() { setBackground(Color.yellow); setForeground(Color.red); setLayout(new FlowLayout()); na=new TextField(20); am=new TextField(20); sts=new TextField(20); nr=new TextField(20); name=new Label("NAME"); amount=new Label("AMOUNT"); seats=new Label("SEATS"); number=new Label("REQUIRED NO OF SEATS"); css=new Choice(); css.add("A.C SLEEPER"); css.add("FIRST CLASS"); css.add("SECOND CLASS"); t=new TextArea(40,45); g=new CheckboxGroup(); si=new Checkbox("SATAPTI",g,false); sr=new Checkbox("SABARI",g,false); b=new Button("SUBMIT"); cancel=new Button("CANCEL"); add(name); add(na); add(seats); add(sts); add(number); add(nr); add(si); add(sr); add(css); add(b); add(amount); add(am); add(t); add(cancel); css.addItemListener(this); b.addActionListener(this); si.addItemListener (this); sr.addItemListener (this); } public void actionPerformed(ActionEvent ae) { if(b.getActionCommand().equals("SUBMIT")) { d=Integer.parseInt(nr.getText()); s=(Integer.parseInt(sts.getText()))-d; if(css.getSelectedItem().equals("A.C SLEEPER")) { am.setText("400"); } else if(css.getSelectedItem().equals("FIRST CLASS")) { am.setText("250"); } else { am.setText("100"); } } c=((Integer.parseInt(am.getText()))*(Integer.parseInt(nr.getText()))); t.setText("NAME:"+na.getText()+" "+"After reservation total no.of seats are:" +s+" "+"Train name :"+g.getSelectedCheckbox().getLabel()+" "+"Class:"+ css.getSelectedItem()+ "Total number of Rs :"+c); if(cancel.getActionCommand().equals("CANCEL")) { repaint(); } } public void itemStateChanged(ItemEvent ie) { } }

Related Source Codes

Script Name Author
Sending mail Using JavaMail to Yahoo and Gmail accounts sai prasad
Simple Program in Java to Implement Multithreading Satish.K
Simple Calculator in Java Using Remote Method Invocation Satish.K
Guest Book Application Using Servlets Satish.K
String Manipulation Using Stringification Satish.K
String Manipulation Using Stringification Satish.K
Moving Ball Application Using Java Beans Satish.K
Rapid Roll game subrahmanyeswararao
student mgm arpan
Sourav Datta
Download Manager Sagar
Address Book in Java Rahul Chouhan
address book using java database connectivity(jdbc-msaccess) shekhar bansal
sun Steganography B.Rajavel
Connecting Java with MS-Access - Inserting data in Aseem

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions
Copyright ©2003-2017 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=1124


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review