You are on page 1of 23

JAVA EDITOR: AASAN

INTRODUCTION

INTRODUCTION

There are number of Integrated Development Environments for Java available in the
market, there may be a question of why such a system is being developed. All Existing
Systems are platform specific.
A Definite need for a System that overcomes the limitations of the existing system has
been justified. The main motive of developing this system is to provide Java Developer
with a conductive environment to develop Java programs.
To provide an interactive environment for editing, compiling and executing Java
programs. To reduce the time the web users, take to switch over to editors.
The proposed system is a Complete Java Development Environment with many
additional features.
It includes an Integrated Development Environment for Java with the options of a regular
editor to create new files, open existing files, save files, cut, copy, paste, undo, find, find
next and replace.
It includes options to Compile and Execute Java Programs and also invoke Applet
Viewer. The file that is open in the IDE at that moment is compiled or interpreted or
executed using applet viewer. It is necessary to note that only files with .java extension
can be compiled, only files with .class extension can be interpreted.
The following are the menus in AASAN-
File
Edit
Search
Format
Run
Window
Help

1
Page no.
JAVA EDITOR: AASAN

Problem Definition:

Presently available system


Command Prompt:
This application has limitations in some respects.
It cannot be implemented in systems supporting different operating systems than windows.
It cannot be processed editor-based compile and execute the java program and also make its text file is
created by manual or another editor. Java file must be compiled by command prompt.
The compilation and execution of java programs can be done in command prompt only.
It increases the java user's time.
It is platform specific.
The Run command is included in this version of Windows, even though it doesn't appear on
the Start screen by default. You can even add it to the Start screen if you want to open more quickly.

Need Of New System:

This application “JAVA EDITOR “is developed using JAVA. It is basically an editor with some
additional options. This editor is designed in such a way to fulfill the complete needs of the java
Integrated Development Environment or java development using SUN JDK under windows98
and above, Compilation and execution can be done in command prompt only. This application
helps to do compilation and execution in editor itself. So that user can identify the warning(s)
and error(s) in the editor itself.
This editor reduces the user time. It is easy to compile and run the programs. This editor is more
flexible and user friendly.
This application is developed in java language using the following concepts AWT, FRAME. The
main motive of developing this system is to provide Java Developer with a conductive
environment to develop Java programs.
To provide an interactive environment for editing, compiling and executing Java programs. To
reduce the time the web users, take to switch over to browsers, editors and search engines.

2
Page no.
JAVA EDITOR: AASAN

Aim and Objectives:

The main purpose of the proposed system is to create a user-friendly environment for
writing and executing any core java program within an editor itself.

The system will achieve all of the following objectives.

It is helpful to compile and run the java program in the same window.

This editor has two text area. One is used for code development and the other for
debugging.

It provides the options of regular editor to create new files, open existing files, save files,
cut, copy, paste, undo, find and find next.

It also invokes applet viewer in same window

It includes Ms-Access for JDBC programs.

3
Page no.
JAVA EDITOR: AASAN

LITERATURE REVIEW
2.1 Overview

Existing Systems are platform specific

Symantec’s Cafe is purely Windows based. Microsoft’s VJ++ is also Windows based and
acts more like a plug–in–play for its MSDEV Wrapper and offers almost identical
experience as its other C++ products. Java Workshop is also platform specific and works
only under Windows 95/NT or Solaris platform. These systems have been developed
using software that is not platform independent.

1. The compilation and execution of java programs can be done in command prompt
only.

2. Time consuming.

The Run command is included in this version of Windows, even though it doesn't appear
on the Start screen by default. You can even add it to the Start screen if you want to open
more quickly.

To overcome the drawbacks that were in the existing system we developed a


system that will be very useful for writing and executing java programs. Here the
compilation and execution of the java program can be done in same window which
reduces the time of finding errors and remove them so programmer can re-compile the
program and see the output of this program in same window.

2.2 Related Work

JDK:

A Java Development Kit (JDK) is a collection of tools which are used for developing,
designing, debugging, executing and running java programs. JAVA is a machine
independent and operating system independent language. A program written in JAVA can
be run on any machine or on any platform provided by the interpreter of that particular
platform [1].

JAVA AWT—POWERFUL TOOL:

AWT stands for Abstract Windowing Toolkit. It has all libraries required for GUI
programming Java AWT is a package that embeds all GUI classes that can be used for
programming. For any GUI program this package is first imported. Some of the tools that
are available in this package are included.

Button
4
Page no.
JAVA EDITOR: AASAN
Scroll Bars

List Boxes

Choice Boxes

Windows

AWT also includes methods for handling events graphical operations.

SWING:

Swing is a set of classes that provides more powerful and flexible components than are
possible with the AWT. In addition to familiar components, such as Buttons, Check
boxes, and Labels. Swing supplies several additions, including Tabbed panes, Scroll
panes, Trees and Tables. Even familiar components such as buttons have more
capabilities in Swing. For example, a button may have both an image and a text string
associated with it. Also, the image can be changed as the state of the Button changes.

Swing components are platform independent, so the term lightweight is used. The Swing-
related classes are contained in javax.swing and its subpackages, such as
javax.swing.tree.

3. Project Planning and Implementation

Software Engineering: -

Software Engineering is the establishment and use of sound engineering principles in


order to obtain economically software i.e., reliable and works efficiently on machines.
The application of systematic, disciplined, quantifiable approach to the development,
operation and maintenance of software; that is, the application of engineering to software
[2].

A Generic view of Software Engineering: -

Engineering is the analysis, design, construction, verification and management of


technical entities. Regardless of the entity to be engineered, the following questions must
be asked and answered:

1. What is the problem to be solved?

2. What characteristics of entity are used to solve the problem?

3. How will the entity be realized?

5
Page no.
JAVA EDITOR: AASAN
4. How will the entity be constructed?

5. What will be the approach to uncover the errors in design?

6. How will the entity be supported over the long term? What is SDLC?

The Systems Development Life Cycle (SDLC), or Software Development Life Cycle in
systems engineering and software engineering, is the process of creating or altering
systems, and the models and methodologies that people use to develop these systems. The
concept generally refers to computers or information systems.

3.1 Software Development Life Cycle

In software engineering the SDLC concept underpins many kinds of software development
methodologies. These methodologies form the framework for planning and controlling the
creation of an information system software development process.

Planning: - The objective of software project planning is to provide a framework that enables
the management to make reasonable estimates of resources, cost, and schedule. These estimates
are made within a limited time frame at the beginning of a software project and should be
updated regularly as the project progresses. In addition, estimates should attempt to define best
case and worst-case scenarios so that project outcomes can be bounded.

Software Scope: The first activity in software project planning is the determination of software
scope. Software scope describes the data and control to be processed, function, performance,
constraints, interfaces, and reliability. The project has a very vast scope in the future.

Feasibility: A feasibility study looks at the viability of an idea with an emphasis on identifying
potential problems and attempts to answer one main question: Will the idea work and should you
proceed with it? Before you begin writing your business plan you need to identify how, where,
and to whom you intend to sell a service or product. You also need to assess your competition
and figure out how much money you need to start your business and keep it running until it is
established. Not everything imaginable is feasible, not even in software.

Software feasibility has four dimensions:

Technology- is a project technically feasible?

Is it within the state of art?

Finance - Is it financially feasible?

Time- will the project be completed within the specified time?

Resources-does the organization have the resources needed to succeed?


6
Page no.
JAVA EDITOR: AASAN
After taking into consideration of above said dimensions, we found it could be feasible for us to
develop this project.

Why Are Feasibility Studies so Important?

The information you gather and present in your feasibility study will help you:

• List in detail all the things you need to make the business work.

• Identify logistical and other business-related problems and solutions.

• Develop marketing strategies to convince a bank or investor that your Business is worth
considering as an investment and

• Serve as a solid foundation for developing your business plan.

The Components of a Feasibility Study:

• Description of the Business: The product or services to be offered and how they will be
delivered.

• Market Feasibility: Includes a description of the industry, current market, anticipated


future market potential, competition, sales projections, potential buyers, etc.

• Technical Feasibility: Details of how you will deliver a product or service (i.e.,
materials, labor, transportation, where your business will be located, technology needed,
etc.).

• Financial Feasibility: Projects to show how much start-up capital is needed, sources of
capital, returns on investment, etc.

• Organizational Feasibility: Defines the legal and corporate structure of the business
(may also include professional background information about the founders and what
skills they can contribute to the business).

Development: -

The development phase involves converting design specifications into executable programs.
Effective development standards include requirements that programmers and other project
participants discuss design specifications before programming begins. Programmers use various
techniques to develop computer programs. The large transaction-oriented programs associated
with financial institutions have traditionally been developed using procedural programming
techniques.

7
Page no.
JAVA EDITOR: AASAN
Procedural programming involves the line-by-line scripting of logical instructions that
are combined to form a program. Primary procedural programming activities include the
creation and testing of source code and the refinement and finalization of test plans.
Typically, individual programmers write and review (desk test) program modules or
components, which are small routines that perform a particular task within an application.

Completed components are integrated with other components and reviewed, often by a
group of programmers, to ensure the components properly interact. The process continues
as component groups are progressively integrated and as interfaces between component
groups and other systems are tested.

Development Standards:

Development standards should be in place to address the responsibilities of application


and system programmers. Application programmers are responsible for developing and
maintaining end-user applications. System programmers are responsible for developing
and maintaining internal and open-source operating system programs that link application
programs to system software and subsequently to hardware. Managers should thoroughly
understand development and production environments to ensure they appropriately assign
programmer’s responsibilities.

Development standards should prohibit a programmer’s access to data, programs,


utilities, and systems outside their individual responsibilities. Library controls can be used
to manage access to, and the movement of programs between, development, testing, and
production environments. Management should also establish standards requiring
programmers to document completed programs and test results thoroughly. Appropriate
documentation enhances a programmer’s ability to correct programming errors and
modify production programs.

Software Documentation:

Organizations should maintain detailed documentation for each application and


application system in production. Thorough documentation enhances an organization’s
ability to understand functional, security, and control features and improves its ability to
use and maintain the software. The documentation should contain detailed application
descriptions, programming documentation, and operating instructions. Standards should
be in places that identify the type and format of required documentation such as system
narratives, flowcharts, and any special system coding, internal controls, or file layouts not
identified within individual application documentation.

System documentation should include:


System Descriptions – System descriptions provide narrative explanations of
8
Page no.
JAVA EDITOR: AASAN
operating environments and the interrelated input, processing, and output functions of
integrated application systems.

Maintenance: -

Software maintenance in software engineering is the modification of a software


product after delivery to correct faults, to improve performance or other attributes,
or to adapt the product to a modified environment. This international standard
describes the software maintenance processes as:

Corrective maintenance: Reactive modification of a software product performed after


delivery to correct discovered problems.

Adaptive maintenance: Modification of a software product performed after delivery


to keep a software product usable in a changed or changing environment.

Perfective maintenance: Modification of a software product after delivery to improve


performance or maintainability [3].

3.1 Proposed System Design:

The following are the menus in the AASAN:

File

Edit

Search

Format

Run

Window

Help

9
Page no.
JAVA EDITOR: AASAN

File Menu: -
The file menu deals with file handling, and it consists of the following menu items.

New: -

To open a new file. When this menu item is clicked a new file with the name “untitled” is
opened.

Open: -

To open the existing files. When this menu item is clicked the open dialog box is
displayed which provides facility of choosing any file and when a file is selected its
content gets displayed in the Text area.

Save: -

To save the current file. If one wants to save the untitled file, the save dialog box gets
displayed. If the file is an existing file, then the Dialog box does not appear. The contents
of the file are just updated.

Save As: -

To save the existing file with a new name. When the save as menu item is clicked a save
as dialog box is opened and we can save the file with the new name.

Close: -

To close the file that has been opened.

Quit: -

To exit from the application. When this menu item is clicked the exit operation takes
place.

Edit Menu: -

The Edit menu deals with editing operations, and it consists of the following menu items.

Undo: -

Repeat Last action.

Clear: -

Clears the screen by deleting the contents of the text area.


10
Page no.
JAVA EDITOR: AASAN
Cut: -

Copied the selected text to the buffer and deleted it from the existing area.

Copy: -

Copied the selected text to the buffer.

Paste: -

To paste the copied text or the text that was cut wherever needed.

Select all: -

To select all the text in the text area for editing operations.

Search Menu: -
This menu item is used to handle the search operations.

Find: -

To search for a particular word throughout the file. When the user clicks this option, the
Find Dialog box is displayed on the screen. The user gives the text to be found in the text
field and enters o.k. If the word is present in the file, it is highlighted or else a message
box gets displayed with the message “Not Found”. The find Dialog also provides the
options match case, whole words by means of checkbox.

Find Next: -

Find Next search for the next location of the word previously searched using the find
option.

Format: -

The Format menu provides customized settings to the user. It has two sub menus-

Font

Color

Font Selection: -

11
Page no.
JAVA EDITOR: AASAN
When the user wants to set any font of his choice, he selects this option. It provides him
with the option for setting font, font style and size for the text. It also has a preview
facility.

Color: -

By clicking the color menu, the user can select any color of his choices from the color
palette. The color palette provides the color using the primary colors. This dialog box
supports both background as well as foreground colors using Radio buttons. Users can
select one or them.

12
Page no.
JAVA EDITOR: AASAN

Run Menu: -
Compile: -

Compiles the file that is currently opened in the text area and displays the errors in the
error text area. If there are no errors, then the message “. Good! There is no error in your
Program" is displayed.

Application: -

When the user selects the Application option then the editor searches for the class file of
the current file to run. If the class file is available, then the file is run successfully, and
output is obtained, and else failure is reported.

Applet: -

Invokes the applet viewer with the file that is currently open. This option is used to run
the Applet programs and Swing programs.

Ms-Access: -

This option is used to connect with Ms-Access application.

Window Menu: -

Output window: -

This option is used to enable the output window.

Full Screen: -

This option is used to disable the output window and display the textarea with the entire
screen.

Help: -

This module supports high profile quick help. This helps explain all the details about
Aasan to facilitate the user. When the user faces any problem, the help menu provides
contact details [4].

3.1.1: Data Flow Diagram

13
Page no.
JAVA EDITOR: AASAN

Fig 3.2 DFD of Proposed System

Fig 3.3 DFD of File Menu

14
Page no.
JAVA EDITOR: AASAN

Fig 3.4 DFD of Edit Menu

Fig 3.5 DFD of Search Menu

15
Page no.
JAVA EDITOR: AASAN

Fig 3.6 DFD of Format Menu

Fig 3.7 DFD of Run Menu

16
Page no.
JAVA EDITOR: AASAN

Fig 3.8 DFD of Window Menu

Fig 3.9 DFD of Help Menu

ADVANTAGES OF PROPOSED SYSTEM:

Simple and Powerful

Interactive

Compilation and execution are done in same Window.

It reduces user time.

User friendly

Flexible

Easy to understand
17
Page no.
JAVA EDITOR: AASAN
Easy to access

3.1.3 APPLICATIONS OF PROPOSED SYSTEM:

Colleges and Schools

Students

Java programmers

Java project developer

Library (Ms-Access)

4. SYSTEM IMPLEMENTATION
After having the user acceptance of the new system developed, the implementation phase begins.
Implementation is the stage of a project during which theory is turned into practice.

During this phase, all the programs of the system are loaded onto the user's computer. After
loading the system, training of the users starts.

4.1 Software Environment:

4.1.1 Software Specification

JDK (Java Development Toolkit)

Operating System Windows’95 and above

Front End Java jdk1.6 and above

Back End Ms Access

4.1.2 Hardware Specification

18
Page no.
JAVA EDITOR: AASAN
PC (PERSONAL COMPUTER) including all peripherals & components.

4.2 Requirement Analysis

For developing java editor, we require java development toolkit. For running this editor, we need
windows OS. We also require a computer with better speed. At least dual core processor with 2
GB RAM and Minimum 160 GB Hard drive [5].

4.3 Implementation and Testing

TESTING STRATEGY:

A strategy for system testing integrates system test cases and design techniques into a well-
planned series of steps that results in the successful construction of software. The testing strategy
must co-operate with test planning, test case design, test execution, and the resultant data
collection and evaluation. A strategy for software testing must accommodate low-level tests that
are necessary to verify that a small source code segment has been correctly implemented as
well as high level tests that validate major system functions against user requirements.

Software testing is a critical element of software quality assurance and represents the
ultimate review of specification design and coding. Testing represents an interesting anomaly for
the software. Thus, a series of testing is performed for the proposed system before the system is
ready for user acceptance testing.

Before implementing the new system into operation, a test run of the system is done removing all
the bugs, if any. It is an important phase of a successful system. After codifying the whole
program of the system, a test plan should be developed and run on a given set of test data. The
output of the test run should match the expected results [6].

Using the test data following test run are carried out:

System testing

Unit testing

19
Page no.
JAVA EDITOR: AASAN

SYSTEM TESTING:

Software once validated must be combined with other system elements (e.g.,
Hardware, people, database). System testing verifies that all the elements are proper, and that
overall system function performance is achieved. It also tests to find discrepancies between the
system and its original objective, current specifications and system documentation.

In such a case, the errors in the programs are identified and are fixed and further tested for the
expected output. When it is ensured that the system is running error-free, the users are called
with their own actual data so that the system can be shown running as per their requirements.

UNIT TESTING:

In unit testing different modules are tested against the specifications produced
during the design for the modules. Unit testing is essential for verification of the code produced
during the coding phase, and hence the goal is to test the internal logic of the modules. Using the
detailed design description as a guide, important Conrail paths are tested to uncover errors within
the boundary of the modules. This testing is carried out during the programming stage itself. In
this type of testing step, each module was found to be working satisfactorily as regards to the
expected output from the module.

20
Page no.
JAVA EDITOR: AASAN

5. CONCLUSION
In the previous system it was very difficult to perform operation of compiling and executing core
java program.

The proposed application is very flexible and more convenient for the users. This editor is very
easy to use and edit the text and easily set different colors and fonts.

This application supports more facilities like running and compiling the programs within it.

This application helps to do compilation and execution in editor itself. So that user can identify
the warning(s) and error(s) in the editor itself.

This editor reduces the user time. It is easy to compile and run the programs. This editor is more
flexible and user friendly.

As for future enhancement, it can be made to support more facilities like running the Http
Servlets programs and Java Beans within itself.

21
Page no.
JAVA EDITOR: AASAN

5.1 Future Scope: -

This application will be used in many sectors where we need to use java programming language
for writing and executing of core java program. As for future enhancement it can be made to
support more facilities as follows:

Running the Http Servlets programs

Java Beans programs

HTML programs

JSP programs

Oracle Connectivity

REFERENCES: -

[1]. Patrick Naughton and Schildt, “The Complete Reference-Java2”: Tata Mc.Graw-Hill
Edition.

[2]. Jamie Jaworski, “Java 2 Platform”: Techmedia Publication, First edition.

[3]. E Balagurusamy “Programming with JAVA”: Tata Mc.Graw-Hill Edition.

[4]. http://www.javaeditor.org/index.html/Main_Page

[5]. https://netbeans.org/features

[6]. www.dreamtechpress.com

22
Page no.
JAVA EDITOR: AASAN

23
Page no.

You might also like