Skip to content

OGordievsky/ShowFormattedText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShowFormatText application



This program shows the contents from text file, after entering it's path on the command line.
Is launched window of the resolution size set in the properties file. This window shows left-formatted text:
Words that do not fit on one line are completely wrapped to the next line.
Words that do not fit on a line at all are split in such a way that the maximum number of characters remains on the original line.
This program handles newline '\n' breaks.
The text is displayed with proportional font, for example, Arial (the name can be changed in the properties).
Each pair of text words is shown in a font that is larger or smaller than the font size for the previous pair.
In this case, the size change alternates, for example: 9-12-9-12.
When redrawing the window, the text is not cut into new lines.
By pressing the Up and Down keys, the program scrolls line by line.
The program does not use components that perform text formatting. Only the standard "awt" library is used for shows text into window.
You can change next settings in "ShowFormattedText.properties": fontName; windowWidth; windowHeight; maxSymbols; someWordsCount.

Before start this program:
Ensure that your PC have installed Java 8
And have installed Git

How to start this program?

Start from console:
1. Type in your console next commands:
mkdir c:\projects\ShowFormattedText
cd c:\projects\ShowFormattedText
git clone https://github.com/OGordievsky/ShowFormattedText
cd c:\projects\ShowFormattedText\compiled
java -jar ShowFormattedText-1.0-SNAPSHOT.jar

Start from IntelliJIDEA or another Java IDE
1. Walk into yours "projects" directory
2. In project directory type next console command: git clone https://github.com/OGordievsky/ShowFormattedText
3. Open you favorite IDE
4. In yours IDE make next steps: File -> Open -> :\projects\ShowFormattedText
5. Find main class "ShowFTextApp" into: \ShowFormattedText\src\main\com\example\ShowFTextApp.java
6. Right click on ShowFTextApp.java select [Run] (green "Play" triangle)

Simple way to start from OS
1. Click "Download" after that the start upload archive from:
https://github.com/OGordievsky/ShowFormattedText/tree/master/compiled
2. Unpack Application.rar into your directory.
3. Double-click on Start.bat

Enjoy to use

About

MVC format file.txt application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages