Skip to content

Latest commit

 

History

History
144 lines (79 loc) · 4.56 KB

README.md

File metadata and controls

144 lines (79 loc) · 4.56 KB

notepad

I have spent near more two weeks to write this Notepad application. At this moment, I want to share with you.

I wonder that do you know the Notepad in Windows XP/7. If you have no idea, I am pleasure to display the Notepad

in Windows 7 with you, and it displays as below: Example

It has large future and simple interface, so does my Notepad!

Well, I will introduce my Notepad.

First, Let's look at the structure of the my Notepad application:

Example

How to add substance to your project build path?

NOTE: Your computer should install the Maven(apache-maven-3.2.2 is good choice) before running this project!

There are TWO ways to provided.

  1. Using eclipse tool to add the substance-1.0.jar to project build path.

1.1.Finding the substance-1.0.jar with the path "notepad/lib/skin/substance-1.0.jar".

Right Click --> Build Path --> Add to Build Path.

1.2.Then open the opm.xml(with the path "notepad/pom.xml")

Deleting the substance dependency:
<dependency>
  <artifactId>substance</artifactId>
  <artifactId>substance</artifactId>
  <version>1.0</version>
</dependency>
  1. Copy the substance-1.0.jar to your repository. 2.1.Finding the substance-1.0.jar with the path "notepad/lib/skin/substance-1.0.jar".

    Copying the substance-1.0.jar file to your repository.

    The default path of the repository is "${user.home}/.m2/repository/org/jvnet/substance/substance/1.0/substance-1.0.jar"

How to run notepad project?

Using the eclipse tool and finding the Client.java file with the path

"notepad/src/main/java/com/b510/notepad/client/Client.java".

Right Click --> Run As --> Java Application


The Notepad Main UI

Example

File Menu

Example

Edit Menu

Example

Format Menu

Example

View Menu

Example

Time Menu

Example

Open File

Example

About

Example

Change Skin

Example

Describe for all files

Client.java --> The entry of the notepad application. It contains the main method.

Common.java --> All constants in here.

AboutUI.java --> About notepad page.

FindManagerUI.java --> Find page.

FontManagerUI.java --> Font setting page.

FontSizeManagerUI.java --> Font sizt setting page.

UI.java --> The parent class for the NotepadUI, It extends JFrame.

MainUI.java --> The main page of the notepad.

NotepadUI.java --> The parent class for the MainUI, It extends JUI and implements ActionListener.

ReplaceManagerUI.java --> Replace page.

SkinManagerUI.java --> Skin setting page.

EditMenuUtil.java --> Edit menu functions provider.

FileMenuUtil.java --> File menu functions provider.

FormatMenuUtil.java --> Format menu functions provider.

HelpMenuUtil.java --> Help menu functions provider.

NotepadUtil.java --> Common functions provider.

ViewMenuUtil.java --> View menu functions provider.

log4j.properties --> A properties for the log4j.

substance-1.0.jar --> substance dependency.

pom.xml --> pom.xml

More Information