Presentation On Notepad

Preview:

DESCRIPTION

This is the power point ppt. on notepad which has been developed in Java.

Citation preview

PRESENTATION ON PROJECT OF

NOTEPAD APPLICATION

IN JAVA

Presented By: Nisha AggarwalRollNo.-8ITW-033

PROJECT OVERVIEW

This project is about designing a simple notepad using the common features provided by java.

Here we can use various operation like cut copy , paste etc.

This project is completely designed over common java features.

INTRODUCTION• Notepad is a basic text editor for Microsoft Windows. It

has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.

• It can use to create simple documents. The most common use for Notepad is to view or edit text (.txt) files, but many users find Notepad a simple tool for creating Web pages.

• Because Notepad supports only very basic formatting, you cannot accidentally save special formatting in documents that need to remain pure text. This is especially useful when creating HTML documents for a Web page because special characters or other formatting may not appear in your published Web page or may even cause errors

Continue…• Text editor application is a common text-only

(plain text) editor. The resulting files—typically saved with the .txt extension—have no format tags or styles, making the program suitable for editing system files that are to be used in a DOS environment.

• Easy to use implementation of Shortcut Keys for Basic Editing Functions.

WHY NOTEPAD APPLICATION IN JAVA ?

• Java is platform independent Language. It can Run on any Operating System which has JVM installed.

• One can not use Windows notepad in other Operating System.

• So for Simplify the use of Notepad of Windows in Other Operating System with ease, The Notepad is Developed in Java.

• The main objective of this project is to edit or update the text as you want. It acts like as windows notepad so having all of the function of it. Thus it makes a very important role in the Text Editing.

BASIC FEATURES The Notepad application is a menu driven application that performs text editing

operations: -File -Edit -Format - View -Help File operations include: -New file -Opening existing files -Saving the files -Saving the existing file with another name -Exiting the application Edit Operations Include: -Undo -Cut -Copy -Paste -Find -Find Next -Delete -Select all -Time/Date

Continue.. Format Operations Include: -Word Wrap -Font

View : -Status bar

Help: -Help Topic

WORKING MODEL

MAIN FUNCTION

TYPING FUNCTION

STARTING FUNCTION

Includes different Cases & functionsFor handling theFiles.

FILE HANDLING

WRITING FILE

READING FILE

CREATING NEW FILE

BEING CALLED

Calls starting Function during File handling

Display blank Page with file Editing options

SYSTEM REQUIREMENTS

• Computer with any Operating System. • Java Installed Platform. • Basic Memory. • Language: English

ARCHITECTURE OF NOTEPAD APPLICATION

The main menu bar of the Notepad application consists of five pull down menus:

NOTEPAD APPLICATIONNOTEPAD APPLICATION

File MenuFile

MenuEdit

MenuEdit

MenuFormatMenu

FormatMenu

View MenuView Menu

Help MenuHelp Menu

Different Classes Used• pro2 class:Designs the notepad interface

and coordinates the flow of operations in the entire application.

• UndoAction Class:Handles the Undo menu operations.

• UndoManager Class:Handles the Edit Pop Up menu operations.

• UndoListener Class:Handles the text editing events.

• fontDialogBox Class:Displays the font dialog box.

Diagrammatic representation of different classes

Pro2 class Pro2 class

UndoAction Class

UndoAction Class

UndoManager

Class

UndoManager

Class

UndoListener class

UndoListener class

fontDialog Box

fontDialog Box

ARCHITECTURE OF FILE MENU MODULE

FILE MENUFILE MENU

New Optio

n

New Optio

n

Open OptionOpen

Option

Save Optio

n

Save Optio

n

Save As

option

Save As

option

Exit Optio

n

Exit Optio

n

ARCHITECTURE OF EDIT MENU MODULE

EDIT MENU EDIT MENU

Date/Time

Option

Date/Time

Option

SelectAll

Option

SelectAll

Option

Delete

option

Delete

option

Find Next

option

Find Next

option

Find optionFind

option

UndoOptio

n

UndoOptio

n

Cut Optio

n

Cut Optio

n

Copy Optio

n

Copy Optio

n

Paste optionPaste option

ARCHITECTURE OF FORMAT MENU MODULE

FORMAT MENU FORMAT MENU

WordWrapOptio

n

WordWrapOptio

n

Font Optio

n

Font Optio

n

ARCHITECTURE OF VIEW MENU MODULE

VIEW MENUVIEW MENU

Status bar Option

Status bar Option

ARCHITECTURE OF HELP MENU MODULE

HELP MENUHELP MENU

Help Topic Option

Help Topic Option

IMPLEMENTING TEXT EDITOR APPLICATION

Notepad application includes:

• Importing the inbuilt Java libraries.• Declaring the variables.• Designing the Notepad interface.• Adding listeners for tracking

various events of the Notepad.• Handling of text editing events.

How to compile a program in java ?

Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Niah>cd\

C:\>cd pro2  C:\pro2>javac pro2.java Note: pro2.java uses or overrides a deprecated

API. Note: Recompile with -Xlint:deprecation for

details.

How to run a program in java?

Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Niah>cd\

C:\>cd pro2

C:\pro2>javac pro2.java Note: pro2.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.  C:\pro2>java pro2

OUTPUTS

Text Editor Screen

Testing of File Menu

New File Dialog Box

Save Dialog Box

Open Dialog Box

Save As Dialog Box

Exit Option

Testing Edit Menu

Delete OptionText Selection:

Text Deletion

Undo Option

Cut Option

Text Selection

Cut Operation Performed

Copy Option

Text Selection

Paste Option

Copy and Paste Operations Performed

SELECT OPTION

TIME/DATE OPTION

FIND OPTION

FIND NEXT OPTION

FONT DIALOG BOX

TESTING HELP MENU

HELP TOPIC

POP UP MENU

THANK YOU