45
PRESENTATION ON PROJECT OF NOTEPAD APPLICATION IN JAVA Presented By: Nisha Aggarwal RollNo.-8ITW-

Presentation On Notepad

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Presentation On Notepad

PRESENTATION ON PROJECT OF

NOTEPAD APPLICATION

IN JAVA

Presented By: Nisha AggarwalRollNo.-8ITW-033

Page 2: Presentation On Notepad

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.

Page 3: Presentation On Notepad

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

Page 4: Presentation On Notepad

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.

Page 5: Presentation On Notepad

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.

Page 6: Presentation On Notepad

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

Page 7: Presentation On Notepad

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

View : -Status bar

Help: -Help Topic

Page 8: Presentation On Notepad

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

Page 9: Presentation On Notepad

SYSTEM REQUIREMENTS

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

Page 10: Presentation On Notepad

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

Page 11: Presentation On Notepad

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.

Page 12: Presentation On Notepad

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

Page 13: Presentation On Notepad

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

Page 14: Presentation On Notepad

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

Page 15: Presentation On Notepad

ARCHITECTURE OF FORMAT MENU MODULE

FORMAT MENU FORMAT MENU

WordWrapOptio

n

WordWrapOptio

n

Font Optio

n

Font Optio

n

Page 16: Presentation On Notepad

ARCHITECTURE OF VIEW MENU MODULE

VIEW MENUVIEW MENU

Status bar Option

Status bar Option

Page 17: Presentation On Notepad

ARCHITECTURE OF HELP MENU MODULE

HELP MENUHELP MENU

Help Topic Option

Help Topic Option

Page 18: Presentation On Notepad

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.

Page 19: Presentation On Notepad

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.

Page 20: Presentation On Notepad

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

Page 21: Presentation On Notepad

OUTPUTS

Text Editor Screen

Page 22: Presentation On Notepad

Testing of File Menu

Page 23: Presentation On Notepad

New File Dialog Box

Page 24: Presentation On Notepad

Save Dialog Box

Page 25: Presentation On Notepad

Open Dialog Box

Page 26: Presentation On Notepad

Save As Dialog Box

Page 27: Presentation On Notepad

Exit Option

Page 28: Presentation On Notepad

Testing Edit Menu

Page 29: Presentation On Notepad

Delete OptionText Selection:

Page 30: Presentation On Notepad

Text Deletion

Page 31: Presentation On Notepad

Undo Option

Page 32: Presentation On Notepad

Cut Option

Text Selection

Page 33: Presentation On Notepad

Cut Operation Performed

Page 34: Presentation On Notepad

Copy Option

Text Selection

Page 35: Presentation On Notepad

Paste Option

Page 36: Presentation On Notepad

Copy and Paste Operations Performed

Page 37: Presentation On Notepad

SELECT OPTION

Page 38: Presentation On Notepad

TIME/DATE OPTION

Page 39: Presentation On Notepad

FIND OPTION

Page 40: Presentation On Notepad

FIND NEXT OPTION

Page 41: Presentation On Notepad

FONT DIALOG BOX

Page 42: Presentation On Notepad

TESTING HELP MENU

Page 43: Presentation On Notepad

HELP TOPIC

Page 44: Presentation On Notepad

POP UP MENU

Page 45: Presentation On Notepad

THANK YOU