You are on page 1of 39

Mini Project Report

C. .W S E .T E I I BT MNGM T AAE E N
Submitted in Partial Fulfillment for the Degree of Bachelor of Technology in Computer Science SUBMITTED BY Ravi Rajak Abhishek Kumar Ashutosh Kr. Jha Saurav Suman Anubhav Agrawal (07/CSE/2K7) (20/CSE/2K7) (41/CSE/2K7) (46/CSE/2K7) (87/CSE/2K7)

UNDER SUPERVISION OF: Mr. BINOD KUMAR

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CAMBRIDGE INSTITUTE OF TECHNOLOGY TATISILWAI, RANCHI835103

(2011)

DECLARATION CERTIFICATE

This to certify that the work presented in the project entitled CIT WEBSITE MANAGEMENT in partial fulfillment of the requirement for award of degree of Bachelor of Technology in Computer Science & Engineering, of Cambridge Institute of Technology, Tatisilwai, Ranchi is an authentic work carried out under my supervision and guidance. To the best of my knowledge, the content of this project does not form a basis for the award of any previous Degree to anyone else.

Date : 05/04/2011

Mr. Binod Kumar Dept. of Computer Science and Engineering Cambridge Institute of Technoogy. Tatisilwai, Ranchi 835103.

Head of Department Dept. of Computer Science and Engineering

Cambridge Institute of Technoogy. Tatisilwai, Ranchi 835103

CERTIFICATE OF APPROVAL The foregoing project entitled CIT WEBSITE MANAGEMENT is hereby approved as a creditable work on the topic and has been presented in satisfactory manner to warrant its acceptance as prerequisite to the degree for which it has been submitted. It is understood that by this approval, the undersigned do not necessarily endorse any conclusion drawn or opinion expressed therein, but approve the project for the purpose for which it is submitted.

(Internal Examiner)

(External Examiner)

Head of Department Dept. of Computer Science and Engineering Cambridge Institute of Technoogy.

Tatisilwai, Ranchi 835103

ACKNOWLEDGEMENTS
We extend our sincere thanks to Mr Arshad Usmani who continuously helped us throughout the project and without his guidance, this project would have been an uphill task. We are pleased to acknowledge Mr Binod Kumar for his invaluable guidance during the course of this project work. We are also grateful to other members of the CIT team who co-operated with us regarding some issues. We would also like to thank Software Farm ( www.swfm.com ) for writing the very useful Mica Graphics Framework Toolkit for Java under the Open Source banner which greatly helped us in writingthe visualization part. Last but not the least, Our friends who also co-operated with us nicely for the smooth development of this project. April 5, 2011 Anubhav, Ashutosh, Saurav, Ravi, Abhishek

Contents
ACKNOWLEDGEMENTS...................................................................................................................................2 CONTENTS............................................................................................................................................................3 INTRODUCTION..................................................................................................................................................4 OVERVIEW.................................................................................................................................................................4 BACKGROUND AND MOTIVATION..............................................................................................................................................................4 OBJECTIVES...............................................................................................................................................................5 METHODOLOGY..........................................................................................................................................................5 TOOL DESCRIPTION......................................................................................................................................................6 USER INTERFACE.......................................................................................................................................................6 FEATURES..................................................................................................................................................................6 TOLLS USED...............................................................................................................................................................7 SPECIFICATION...........................................................................................................................................................8 CALLING THE DESIGN TOOLS....................................................................................................................................10 ANALYSIS................................................................................................................................................................11 VISUALIZATION........................................................................................................................................................12 SYNTHESIS...............................................................................................................................................................13 MODULARITY OF ANALYSIS AND VISUALIZATION................................................................................................................................................14 OVERVIEW...............................................................................................................................................................14 IMPLEMENTATION.....................................................................................................................................................14 FUTURE SCOPE.................................................................................................................................................16
ADDITIONAL INFORMATION...................................................................................................................................................................16 ECONOMIC SUPPORT.................................................................................................................................................................................17 MORE SOPHISTICATED ANALYSIS..........................................................................................................................................................17

CODING................................................................................................................................................................18
CIT FRAME 1.................................................................................................................................................................................................18 CIT FRAME 3.................................................................................................................................................................................................26

SCREENSHOTS..................................................................................................................................................33 REFERENCES.....................................................................................................................................................36

Introduction

Overview
This report discusses the result of the work done in development of Cambridge Institute of Technology Management" on Java Platform. It is a part of the CIT Web ( A Part of college management) project going in Computer Science Department, CIT Ranchi and aims at the development of an application framework for providing a common platform for facilitating the use of methodological approach developed by the CIT Web team and integration of various tools developed during the execution of the project.

Background and Motivation


Web Technology can be found in a large variety of applications today like site development, networking and wireless communication. They essentially comprise of a server and some other platform built around it. The software is used for achieving fast turn around times while the pictorial representation is used to ease the user interface. Till now, the design of CIT Web was largely carried out in an ad-hoc manner. With dramatically decreasing net costs, it is now possible to easily accecc all the informations on a single platform. With over 1000s of users expected by the turn of the decade, the expected complexity of such systems will require a rigorous design methodology with the development of supporting design tools. This is precisely the focus of AASRA project. The AASRA project aims at the development of a design methodology for embedded platform for easy and useful applications. The idea is that given a system specification, by following the methodology and with the help of the tools developed to support it, the user will be able to synthesize a system that meets his constraints. A tool was required to integrate all the design tools discussed above along with the capability to perform the same functions manually. Analysis and Visualization of the target platform was also required to know its performance. This project deals with the development of such a tool which will assist in the implementation of the above methodology.

Objectives
The final goal of the project was twofold. 1. An Integrated Framework was required for interaction with the various users (like Student/Teacher Staffs, Parents, Professionals etc.) with the platform specification being done in the application itself. 2. Based on the final platform configuration and bindings, an Analysis and Visualization framework was required for getting performance metrics of the website and for visualization of the analysis results and the target platform. Along with above main goals , capability to design the target platform manually was also desired.

Methodology
To implement the above goals , the following methodology needs to be followed : 1. Specifying the Application and various components of the Architecture. 2. Specifying the bindings between the tasks and the resources either manually or by the design tools. 3. Specifying the different interconnections between the various department. 4. Analysis : Extracting the data required for analysis and the doing the analysis. 5. Synthesis using the synthesis tools developed by the AASRA team.

Tool Description

User Interface
The tool is very user friendly and intuitive and uses a GUI interface implemented in JAVA to communicate wih the user. Various features are self explanatory. Forms are easy to fill in and components can be added , removed and updated very easily through a single dialog box. The application includes tool-tip hints to give a brief description of the particular input field. List boxes are used to display all the components at once so that user can see all the components of a particular type at once. One can just select the component and modify and remove the component.

Features
1.Intuitive interface 2. Clean separation of various components to facilitate easy modification and revision. 3. All the configuration data is maintained in a separate file to facilitate easy modification If the tool needs to be upgraded to include more features, for instance if it is desired to include more elaborate specification of INFOs then the separation of the data file containing all the data of the specification will prove to be extremely useful. Also maintaining a separate file for the purpose helps in centralisation of the data for easy understanding of the source code and the implementation methodology. 4. Analysis Component is kept modular to facilitate multiple analysis models. Analysis models may need upgradation from time to time depending upon the varying nature of the systems the tool may be used for. To facilitate easy upgradation of analysis model great care has been undertaken - All the data required for analysis is kept in a separate file.

- The data is collected by a 'data collator' which collects data from the various data sources (application specification, target platform specification, e-mail specifications, user etc.). As the data is generated by the other tools and stored in the data collator, only this data collator needs to be changed without disturbing the rest of the analysis. - The 'analyzer' i.e. the actual analysis model is clearly separated from the other analysis mcomponents (like the data collator, the visualizer etc.). So more sophisticated analysis models only needs the modification of the analyzer without being concerned with the rest of the analysis. - Visualization of the analysis result is also made modular. The 'visualizer' reads the analysis result kept in a separate file and generate the desired visualizations of these results (currently it generates pie charts). 5. Quick and easy saving and loading of System configuration. Since the specification of the Application and the Target Platform can be very intricate, a option for saving the current configuration is a very much desired. All the configuration data (including the binding and the interconnection information) could be easily stored in different files. So one can work onmultiple configurations simultaneously. In fact, it is made as convenient as saving, loading and editing a text file from a standard text-editor. 6. Option of seemingly 3D interfaces for viewing analysis results. 7. Visualizer features preset layout and draggable components to provide flexibility to the user for choosing between different layouts or designing his own. 8. Includes an internal Source code Editor for easy viewing and editing of application( JAVA files), info description etc. from within the tool. 9. All the Data Structures for storing configuration data is maintained in a separate file to facilitate easy modification.
'

TOOLS USED
The various tools used in support of the whole website: 1. Jdk 1.5 2. Oracle 10G 3. VSO Image Resizer 4. Adobe Photoshop 5. Nitro pdf

Specifications

First of all the specification of the target platform must be specified completely. It consists of :

1. Application Specification

In the application specification , the JAVA files which constitute the target application are specified. After specifying the JAVA files, one can : View the source with the editor Generate GUI files for the corresponding JAVA file using the ctosuif tool. Generate profiler data for each of the JAVA files which may be required by estimation and partitioning tools etc. A Dataset for each JAVA file can be specified which is needed by the profiler.
b b b

2. Architecture Components Specification

Buttons Checkboxes Textfields Labels RadioButtons Textarea

See the Component Specification table for the parameters required for each component.

3. Binding Specification Here, the bindings between the various tasks and resources are specified manually. The interface is intuitive to facilitate manual binding. The two list boxes on the left display the tasks and resources respectively. To bind a task, select a task and corresponding resource from the list boxes and click Bind. The bound pairs are shown in the list box on the right. After pressing Bind , the channel port binding Dialog pops up to specify the bindings between the various channels of the task and the ports of the resource. From the above dialog, provision is also there to directly estimate the performance of the task on the chosen resource. Tool automatically calls the Software or Hardware Estimator depending on the chosen resource. After specifying a binding , one can re-edit the channel port bindings or delete the binding.

4. Interconnection Specification

The interconnections between the various resources can be specified here. The interface and procedure to connect two resources is similar to Binding discussed previously. Whenever the user clicks on a resource in one of the resource lists, information regarding its total and remaining number of ports is also displayed at the bottom.

Calling the Design tools


After specifying the various components one can also use the tools to automate the task of binding etc. The tools currently supported are: Note : Currently , the actual tools are not called since some tools are not ready. However the tool calling interface ad paramter passing was tested with the help of a dummy tool which was written in dot net.
ij

Analysis
Before doing the Analysis, the following steps are to be followed. 1. Extract Data Before proceeding with the analysis, the data needed by the Analyzer must be extracted from the various sources as required. The exact procedure of extracting the data is specified in the FillData() function in the Class CAnalysis_Data. One only needs to modify this function and recompile this file to change the data extraction process. After clicking this option, if the data is extracted successfully, the tool is ready for analysis. Note: Some data may also come directly from the user. To facilitate this, the concept of User Template File is introduced. See Appendix B for more details.

Visualization
In Platform Visualization, two types of Visualization schemes are supported : 1. Platform Visualization

As shown above, all the components along with their interconnections are displayed. The various components are colour coded according to their type for easy identification. The Visualizer also supports the following options: Preset layouts are included like Star Layout, Ring Layout, which arrange the components according to fixed style. The components displayed above are can be dragged with the mouse to provide flexibility to the user to choose a custom layout. 2. Binding Visualization
. .

In the binding visualization, the tasks bound to resources are also shown along with the platform. The tasks are shown as dark green circles, which are connected to the appropriate resource. Tasks, which are not currently bound, are also shown.

Synthesis
The synthesis tools currently supported are: Hardware ( VHDL ) Software ( RC ) Interface Kernel ASIP Currently the above tools are not called. Dummy functions ( Event handlers for above options ) are included where one just has to fill in the code for calling the above tools appropriately.
. . . . .

Modularity of Analysis and Visualization


The main highlight of the analysis and visualization part is that it is modular for easy modification and upgradation to more advanced analytic models.

Overview

The Analysis part consists of two components : 1. Data Collator 2. Analyzer The responsibility of the Data Collator is to collect all the data required for analysis from various sources and fill the data in the data structures required by the analyzer. The analysis part is not concerned with the source of the data and just produces the results. The output coming from the Analyzer is used by the Visualizer to display the results graphically.

Implementation
The Data Collator and the data structures required by the analyzer are present in the Class CAnalysis_Data. Chapter

The FillData() function present in the above class fills all the data structures from various sources. The analysis is done in the Class CAnalysis. For each analysis , separate functions are present. Each of these functions can be changed independently to implement a different analysis model. The functions assume that the data structures required for the analysis have already been filled up the Data collator. Currently the functions present are : public void MemorySpaceUtilization(String memname); public void MemoryBandwidthUtilization(String memname); public void ProcessorUtilization(String processorname); public void BusBandwidthUtilization(String busname); Each of these functions changes the Global.graphdata data structure which is used by the Visualizer to display the results.

Future Scope
Right now the application runs only on the platform Java Applets.The crisis of web space as also limited its use to be only run on individual computers rather then to be accessed all over the internet . All these things would come true with the availablility of some register spaces on the internet .This would take just a leap forwad for the Gigantic affects to be reflected on the web page.The use of Java tools would also take its security level to a better side compared to the DotNet frame works,Visual Basic Interfaces or the limiting factors of DHTML.

Additional Informations
Though all the pains have been taken to gather as much information as possible via different legal site and authentic sources. The horizon would have greater dimension and user interfaces to satisfy the online users.The time limiting factor had also been an stumbling block and a hinderance in order to accumulate all the required messages being scripted on the front and back ends.With the passage of time these constraints would be eliminated. Doing away these road blocks would make the application full fledged

Economic Support
As a student community it has been our endeavor to get it legalized and we also aim at getting the official authentication from the college authority. We feel a breeze of self confidence and positive reactions from all those college staffs we have interacted yet. The economic support would convert our site into a professional one and the professional touch would surely enhance its use, look and would accordingly motivate us to strive for a better response.

More Sophisticated Analysis


Since the Analysis, part is modular, more sophisticated analysis models can be implemented. In fact, one can also have multiple analysis models in different files which can be used according to the requirement.

CODING
CIT Frame1
import java.awt.event.*; import java.awt.*; import javax.swing.*; public class CitFrame1 implements ActionListener { JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l13,l14,l15,l16,l17,l18,l19,l20,l21,l 22,l23,l24,l25,l26,l27,l28,l29,l30,l31,l32,l33; TextField t1,t2; JButton b1,b2,b3; JFrame frame; JPanel p; MenuBar menubar; Menu abt,dept,admin,place,career,faculty,contact; MenuItem VisionandMission, QualityPolicy, ManagementProfile, Location, Engineering, ManagementStudies, Advertisement, CoursesOffered, TutionFee, Introduction, OurRecruiters, ContactUs, JobOpenings, Profile, Contact; public CitFrame1() { frame=new JFrame("CIT"); p=new JPanel(); l1=new JLabel(new ImageIcon("citm1.jpg")); l2=new JLabel("WELCOME TO CAMBRIDGE INSTITUTE OF TECHNOLOGY");

l3=new JLabel("Username"); l4=new JLabel("Password"); l5=new JLabel(new ImageIcon("faculty.jpg")); l6=new JLabel("About the Institute"); l7=new JLabel("Admin/Faculty Login"); l8=new JLabel("Latest News"); l9=new JLabel("End Semester Examination datesheet published.. >>read more"); l10=new JLabel("Sample question papers published.. >>read more"); l11=new JLabel("Extra classes for 2k7 batch.. >>read more"); l13=new JLabel("CLICK HERE for Student Login"); l14=new JLabel("2011 Cambridge Institute of Technology. All Rights Reserved. Best Viewed on 1024x768. Validated by W3C."); l15=new JLabel("Powered by: AASRA group"); l16=new JLabel("Industry Tieup"); l17=new JLabel(new ImageIcon("cisco.jpg")); l18=new JLabel(new ImageIcon("ibm.jpg")); l19=new JLabel(new ImageIcon("cypress.jpg")); l21=new JLabel(">>more"); l22=new JLabel(new ImageIcon("new.gif")); l23=new JLabel(new ImageIcon("new.gif")); l24=new JLabel("If you are the person with the will to win, desire to succeed, the urge to reach"); l25=new JLabel("your potential, Step in, Dream, Discover and Explore !"); l26=new JLabel("Cambridge Institute of Technology is synonymous with academic excellence."); l27=new JLabel("Affiliated to Ranchi University and approved by AICTE, the college offers quality"); l28=new JLabel("education and technical competencies along with a strong foundation of values"); l29=new JLabel("ideals and rich culture to the students across the country and beyond.Located"); l30=new JLabel("an arcadian environment, the college is equipped with world class infrastructure"); l31=new JLabel("and highly qualified and experienced faculty members.An active Placement"); l32=new JLabel("Training and Welfare Cell is functioning with full enthusiasm with the aim of");

l33=new JLabel("placing the students in top-notch companies."); t1=new TextField(20); t2=new TextField(20); b1=new JButton("Login"); b2=new JButton("Reset"); b3=new JButton("Sign up/Login"); VisionandMission=new MenuItem("Vision and Mission"); QualityPolicy=new MenuItem("Quality Policy"); ManagementProfile=new MenuItem("Management Profile"); Location=new MenuItem("Location"); Engineering=new MenuItem("Engineering"); ManagementStudies=new MenuItem("Management Studies"); Advertisement=new MenuItem("Advertisement"); CoursesOffered=new MenuItem("Courses Offered"); TutionFee=new MenuItem("Tution Fee"); Introduction=new MenuItem("Introduction"); OurRecruiters=new MenuItem("Our Recruiters"); ContactUs=new MenuItem("Contact Us"); JobOpenings=new MenuItem("Job Openings"); Profile=new MenuItem("Profile"); Contact=new MenuItem("Contact"); menubar=new MenuBar(); abt=new Menu(" "); abt.add(VisionandMission); abt.add(QualityPolicy); abt.add(ManagementProfile); abt.add(Location); dept=new Menu("Departments dept.add(Engineering); dept.add(ManagementStudies); admin=new Menu("Admission admin.add(Advertisement); admin.add(CoursesOffered); admin.add(TutionFee); place=new Menu("Placement place.add(Introduction); place.add(OurRecruiters); About us

"); ");

");

place.add(ContactUs); career=new Menu("Career career.add(JobOpenings); faculty=new Menu("Faculty faculty.add(Profile); contact=new Menu("Contact Us"); contact.add(Contact); menubar.add(abt); menubar.add(dept); menubar.add(admin); menubar.add(place); menubar.add(career); menubar.add(faculty); menubar.add(contact);

"); ");

VisionandMission.addActionListener(this); QualityPolicy.addActionListener(this); ManagementProfile.addActionListener(this); Location.addActionListener(this); Engineering.addActionListener(this); ManagementStudies.addActionListener(this); Advertisement.addActionListener(this); CoursesOffered.addActionListener(this); TutionFee.addActionListener(this); Introduction.addActionListener(this); OurRecruiters.addActionListener(this); ContactUs.addActionListener(this); JobOpenings.addActionListener(this); Profile.addActionListener(this); Contact.addActionListener(this); frame.setMenuBar(menubar); l3.setForeground(Color.blue); l4.setForeground(Color.blue); l2.setForeground(Color.red); l8.setForeground(Color.blue); l16.setForeground(Color.red); p.add(l1); p.add(l2); p.add(l6);

p.add(l24); p.add(l25); p.add(l26); p.add(l27); p.add(l28); p.add(l29); p.add(l30); p.add(l31); p.add(l32); p.add(l33); p.add(l5); p.add(l7); p.add(l8); p.add(l9); p.add(l22); p.add(l10); p.add(l23); p.add(l11); p.add(l16); p.add(l17); p.add(l18); p.add(l19); p.add(l21); p.add(l3); p.add(t1); p.add(l4); p.add(t2); p.add(b1); p.add(b2); p.add(l13); p.add(b3); p.add(l14); p.add(l15); b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); t2.setEchoChar('*'); p.setLayout(null); l1.setBounds(0,0,1280,84);

l2.setBounds(450,83,320,50); l6.setBounds(340,140,160,60); l24.setBounds(360,170,450,40); l25.setBounds(360,185,450,40); l26.setBounds(360,210,450,40); l27.setBounds(360,225,450,40); l28.setBounds(360,240,450,40); l29.setBounds(360,255,450,40); l30.setBounds(360,270,450,40); l31.setBounds(360,285,450,40); l32.setBounds(360,300,450,40); l33.setBounds(360,315,450,40); l5.setBounds(0,455,1280,220); l7.setBounds(50,140,150,50); l8.setBounds(1000,140,150,50); l22.setBounds(910,190,23,33); l9.setBounds(940,180,300,50); l23.setBounds(910,230,23,33); l10.setBounds(940,220,300,50); l11.setBounds(940,260,300,50); l16.setBounds(970,330,140,50); l17.setBounds(955,370,60,63); l18.setBounds(1030,370,60,63); l19.setBounds(1105,370,60,63); l21.setBounds(1105,425,60,25); l3.setBounds(30,180,100,50); t1.setBounds(140,190,130,25); l4.setBounds(30,220,100,50); t2.setBounds(140,230,130,25); b1.setBounds(30,270,70,25); b2.setBounds(120,270,70,25); l13.setBounds(30,310,250,50); b3.setBounds(50,360,150,25); l14.setBounds(250,670,900,25); l15.setBounds(1100,700,150,25); frame.add(p); frame.setVisible(true); frame.setSize(1280,960); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }

public void actionPerformed(ActionEvent ae) { Object obj=ae.getSource(); if(obj==b1) { new CitFrame2("Cit2"); frame.setVisible(false); } if(obj==b2) { t1.setText(""); t2.setText(""); } if(obj==b3) { new CitFrame3("Cit3"); frame.setVisible(false); } if(obj==VisionandMission) { new Vision(); frame.setVisible(false); } if(obj==QualityPolicy) { new Quality(); frame.setVisible(false); } if(obj==ManagementProfile) { new Management(); frame.setVisible(false); } if(obj==Engineering) { new Engineering(); frame.setVisible(false); } if(obj==ManagementStudies) { new MS();

frame.setVisible(false); } if(obj==Advertisement) { new Adv(); frame.setVisible(false); } if(obj==Introduction) { new Introduction(); frame.setVisible(false); } if(obj==OurRecruiters) { new Recuiters(); frame.setVisible(false); } if(obj==JobOpenings) { new Jobs(); frame.setVisible(false); } } public static void main(String args[]) { new CitFrame1(); } }

CIT Frame3

import javax.swing.*; import java.awt.*; import java.awt.event.*; public class CitFrame3 extends JFrame implements ActionListener { JFrame frame; JPanel p; JLabel l,l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12; TextField t1,t2,t3,t4,t5,t6,t7; Choice dd,mm,yyyy; Checkbox ch1,ch2,ch3; JButton b1,b2,b3,b4; public CitFrame3(String name) { frame=new JFrame("CitFrame3"); p=new JPanel(); l=new JLabel("Create an Account"); l1=new JLabel("First Name"); l2=new JLabel("Last Name"); l3=new JLabel("Login Name"); l4=new JLabel("@cit.nic.in"); l5=new JLabel("Password"); l6=new JLabel("Re-Password"); l7=new JLabel("D.O.B"); l8=new JLabel("Gender"); l9=new JLabel("Existing User ?"); l10=new JLabel("Login Name"); l11=new JLabel("Password"); l12=new JLabel(new ImageIcon("citm2.jpg")); t1=new t2=new t3=new t4=new t5=new t6=new TextField(10); TextField(10); TextField(10); TextField(10); TextField(10); TextField(10);

t7=new TextField(10); dd=new Choice(); dd.add("dd"); dd.add("01"); dd.add("02"); dd.add("03"); dd.add("04"); dd.add("05"); dd.add("06"); dd.add("07"); dd.add("08"); dd.add("09"); dd.add("10"); dd.add("11"); dd.add("12"); dd.add("13"); dd.add("14"); dd.add("15"); dd.add("16"); dd.add("17"); dd.add("18"); dd.add("19"); dd.add("20"); dd.add("21"); dd.add("22"); dd.add("23"); dd.add("24"); dd.add("25"); dd.add("26"); dd.add("27"); dd.add("28"); dd.add("29"); dd.add("30"); dd.add("31"); mm=new Choice(); mm.add("mm"); mm.add("Jan"); mm.add("Feb"); mm.add("Mar");

mm.add("Apr"); mm.add("May"); mm.add("June"); mm.add("July"); mm.add("Aug"); mm.add("Sept"); mm.add("Oct"); mm.add("Nov"); mm.add("Dec"); yyyy=new Choice(); yyyy.add("yyyy"); yyyy.add("1960"); yyyy.add("1961"); yyyy.add("1962"); yyyy.add("1963"); yyyy.add("1964"); yyyy.add("1965"); yyyy.add("1966"); yyyy.add("1967"); yyyy.add("1968"); yyyy.add("1969"); yyyy.add("1970"); yyyy.add("1971"); yyyy.add("1972"); yyyy.add("1973"); yyyy.add("1974"); yyyy.add("1975"); yyyy.add("1976"); yyyy.add("1977"); yyyy.add("1978"); yyyy.add("1979"); yyyy.add("1980"); yyyy.add("1981"); yyyy.add("1982"); yyyy.add("1983"); yyyy.add("1984"); yyyy.add("1985"); yyyy.add("1986"); yyyy.add("1987"); yyyy.add("1988");

yyyy.add("1989"); yyyy.add("1990"); yyyy.add("1991"); yyyy.add("1992"); yyyy.add("1993"); yyyy.add("1994"); yyyy.add("1995"); yyyy.add("1996"); yyyy.add("1997"); yyyy.add("1998"); yyyy.add("1999"); yyyy.add("2000"); ch1=new Checkbox("Male"); ch2=new Checkbox("Female"); ch3=new Checkbox("I accept Terms and Condition"); b1=new b2=new b3=new b4=new JButton("SignUp"); JButton("Back"); JButton("Login"); JButton("Back");

p.add(l); p.add(l1); p.add(l2); p.add(l3); p.add(l4); p.add(l5); p.add(l6); p.add(l7); p.add(l8); p.add(l9); p.add(l10); p.add(l11); p.add(l12); p.add(t1); p.add(t2); p.add(t3); p.add(t4); p.add(t5); p.add(t6);

p.add(t7); p.add(dd); p.add(mm); p.add(yyyy); p.add(ch1); p.add(ch2); p.add(ch3); p.add(b1); p.add(b2); p.add(b3); p.add(b4); p.setLayout(null); l12.setBounds(0,0,1280,83); l.setBounds(240,120,120,50); l1.setBounds(200,160,120,50); t1.setBounds(335,170,150,25); l2.setBounds(200,200,120,50); t2.setBounds(335,210,150,25); l3.setBounds(200,240,120,50); t3.setBounds(335,250,150,25); l4.setBounds(495,240,100,50); l5.setBounds(200,280,120,50); t4.setBounds(335,290,150,25); l6.setBounds(200,320,120,50); t5.setBounds(335,330,150,25); l7.setBounds(200,360,120,50); dd.setBounds(335,370,60,25); mm.setBounds(415,370,60,25); yyyy.setBounds(485,370,90,25); l8.setBounds(200,400,100,50); ch1.setBounds(335,410,60,25); ch2.setBounds(415,410,60,25); b1.setBounds(260,460,80,25); b2.setBounds(360,460,80,25); l9.setBounds(690,120,200,50); l10.setBounds(650,160,120,50); t6.setBounds(785,170,150,25); l11.setBounds(650,200,120,50); t7.setBounds(785,210,150,25);

b3.setBounds(700,260,80,25); b4.setBounds(800,260,80,25); t4.setEchoChar('*'); t5.setEchoChar('*'); t7.setEchoChar('*'); b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); b4.addActionListener(this); frame.add(p); frame.setVisible(true); frame.setSize(1280,960); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void actionPerformed(ActionEvent ae) { Object obj=ae.getSource(); if(obj==b1) t1.setText(""); if(obj==b2|| obj==b4) new CitFrame1(); } public static void main(String args[]) { new CitFrame3("CIT3"); } }

SCREENSHOTS

References

- Official CIT site (www.cit.nic.in) - IEEE - Programming with java by E. Balagurusamy - The Complete Reference Java 2 by Herbert Schildt - www.google.com

You might also like