‘asciitable’ is a Java library to format tables with various row/column options for indentation, indentation character, alignment, padding (left, right, both), padding characters (left, right, both), and in-line whitespace characters.
Dependencies used for this tutorial
<dependencies>
<dependency>
<groupId>de.vandermeer</groupId>
<artifactId>asciitable</artifactId>
<version>0.3.2</version>
</dependency>
</dependencies>
- Hello world app: Create table
- Set column width
- Span columns
- Text alignment
- Add padding characters to the text
- Set margins
- Working with rule styles
- Grids: themes
- Create custom grid theme
You can download complete working application from below link.
https://github.com/harikrishna553/java-libs/tree/master/asciitable-demo
No comments:
Post a Comment