|
| 1 | +# notepad |
| 2 | + |
| 3 | +I have spent near more two weeks to write this Notepad application. At this moment, I want to share with you. |
| 4 | + |
| 5 | +I wonder that do you know the Notepad in Windows XP/7. If you have no idea, I am pleasure to display the Notepad |
| 6 | + |
| 7 | +in Windows 7 with you, and it displays as below: |
| 8 | + |
| 9 | + |
| 10 | +It has large future and simple interface, so does my Notepad! |
| 11 | + |
| 12 | +Well, I will introduce my Notepad. |
| 13 | + |
| 14 | +First, Let's look at the structure of the my Notepad application: |
| 15 | + |
| 16 | + |
| 17 | +# How to add substance to your project build path? |
| 18 | + |
| 19 | +NOTE: |
| 20 | +Your computer should install the Maven(apache-maven-3.2.2 is good choice) before running this project! |
| 21 | + |
| 22 | +There are TWO ways to provided. |
| 23 | + |
| 24 | +1. Using eclipse tool to add the substance-1.0.jar to project build path. |
| 25 | + 1.1.Finding the substance-1.0.jar with the path "[notepad/lib/skin/substance-1.0.jar](https://github.com/Hongten/notepad/blob/master/lib/skin/substance-1.0.jar)". |
| 26 | + Right Click --> Build Path --> Add to Build Path. |
| 27 | + |
| 28 | + 1.2.Then open the opm.xml(with the path "[notepad/pom.xml](https://github.com/Hongten/notepad/blob/master/pom.xml)") |
| 29 | + Deleting the substance dependency: |
| 30 | + ```xml |
| 31 | + <dependency> |
| 32 | + <groupId>org.jvnet.substance</groupId> |
| 33 | + <artifactId>substance</artifactId> |
| 34 | + <version>1.0</version> |
| 35 | + </dependency> |
| 36 | + ``` |
| 37 | + |
| 38 | +2. Copy the substance-1.0.jar to your repository. |
| 39 | + 2.1.Finding the substance-1.0.jar with the path "[notepad/lib/skin/substance-1.0.jar](https://github.com/Hongten/notepad/blob/master/lib/skin/substance-1.0.jar)". |
| 40 | + Copying the substance-1.0.jar file to your repository. |
| 41 | + The default path of the repository is "${user.home}/.m2/repository/org/jvnet/substance/substance/1.0/substance-1.0.jar" |
| 42 | + |
| 43 | +# How to run notepad project? |
| 44 | + |
| 45 | +Using the eclipse tool and finding the Client.java file with the path "notepad/src/main/java/com/b510/notepad/client/[Client.java](https://github.com/Hongten/notepad/blob/master/src/main/java/com/b510/notepad/client/Client.java)". |
| 46 | +Right Click --> Run As --> Java Application |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +----------------------------------------------------- |
| 51 | +# The Notepad Main UI |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +# The Notepad Main UI |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +# File Menu |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +# Edit Menu |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | +# Format Menu |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +# View Menu |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +# Time Menu |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +# Open File |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +# About |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +# Change Skin |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +# Describe for all files |
| 92 | + |
| 93 | +**Client.java** --> The entry of the notepad application. It contains the main method. |
| 94 | +**Common.java** --> All constants in here. |
| 95 | +**AboutUI.java** --> About notepad page. |
| 96 | +**FindManagerUI.java** --> Find page. |
| 97 | +**FontManagerUI.java** --> Font setting page. |
| 98 | +**FontSizeManagerUI.java** --> Font sizt setting page. |
| 99 | +**UI.java** --> The parent class for the NotepadUI, It extends JFrame. |
| 100 | +**MainUI.java** --> The main page of the notepad. |
| 101 | +**NotepadUI.java** --> The parent class for the MainUI, It extends JUI and implements ActionListener. |
| 102 | +**ReplaceManagerUI.java** --> Replace page. |
| 103 | +**SkinManagerUI.java** --> Skin setting page. |
| 104 | +**EditMenuUtil.java** --> Edit menu functions provider. |
| 105 | +**FileMenuUtil.java** --> File menu functions provider. |
| 106 | +**FormatMenuUtil.java** --> Format menu functions provider. |
| 107 | +**HelpMenuUtil.java** --> Help menu functions provider. |
| 108 | +**NotepadUtil.java** --> Common functions provider. |
| 109 | +**ViewMenuUtil.java** --> View menu functions provider. |
| 110 | +**log4j.properties** --> A properties for the log4j. |
| 111 | +**substance-1.0.jar** --> substance dependency. |
| 112 | +**pom.xml** --> pom.xml |
| 113 | + |
| 114 | +# More Information |
| 115 | + |
| 116 | +* Author : Hongten |
| 117 | + |
| 118 | +* Home Page : [http://www.cnblogs.com/hongten](http://www.cnblogs.com/hongten) |
| 119 | +* Refer Skin Page : [http://www.cnblogs.com/hongten/p/hongten_notepad_substance_skins.html](http://www.cnblogs.com/hongten/p/hongten_notepad_substance_skins.html) |
| 120 | +* Substance URL : [https://substance.dev.java.net/](https://substance.dev.java.net/) |
0 commit comments