Presented By: Nisha Aggarwal RollNo.
-8ITW-033
This
project is about designing a simple notepad using the common features provided by java.
we can use various operation like cut copy , paste etc.
Here
This
project is completely designed over common java features.
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
Text editor application is a common text-only (plain
text) editor. The resulting filestypically saved with the .txt extensionhave 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.
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.
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
Format Operations Include: -Word Wrap -Font View : -Status bar
Help: -Help Topic
Display blank Page with file Editing options
MAIN FUNCTION
Includes different Cases & functions For handling the Files.
TYPING FUNCTION STARTING FUNCTION BEING CALLED FILE HANDLING
Calls starting Function during File handling
CREATING NEW FILE
WRITING FILE READING FILE
Computer with any Operating System. Java Installed Platform. Basic Memory. Language: English
The main menu bar of the Notepad application consists of five pull down menus:
NOTEPAD APPLICATION
File Menu
Edit Menu
Format Menu
View Menu
Help Menu
Pro2 class
UndoAction Class
UndoManager Class
UndoListener class
fontDialog Box
FILE MENU
New Option
Open Option
Save Option
Save As option
Exit Option
EDIT MENU
Date/ Time Option Select All Option
Undo Option
Cut Option
Copy Option Find Next option Find option
Delete option
Paste option
FORMAT MENU
Word WrapO ption
Font Option
VIEW MENU
Status bar Option
HELP MENU
Help Topic Option
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
Text Selection:
Text Selection
Text Selection
Copy and Paste Operations Performed