Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ocadaruma/lowtable
Super simple swing component to render tables
https://github.com/ocadaruma/lowtable
Last synced: about 2 months ago
JSON representation
Super simple swing component to render tables
- Host: GitHub
- URL: https://github.com/ocadaruma/lowtable
- Owner: ocadaruma
- License: apache-2.0
- Created: 2022-05-12T00:48:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T23:44:43.000Z (over 2 years ago)
- Last Synced: 2023-08-14T21:50:32.663Z (over 1 year ago)
- Language: Java
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= lowtable
Super simple swing component to render tables.
image::img/example.png["Example",300]
== Installation
Add `com.mayreh.lowtable:lowtable:$VERSION` to the dependency.== Usage
[source,java]
----
TableData data = TableData
.builder()
.header("target", "metricA", "metricB")
.addRow(Cell.of("foo"),
Cell.of("99.9999", TableCellStyle.builder().background(Defaults.SUCCESS_LIGHT).build()),
Cell.of("0.1", TableCellStyle.builder().background(Defaults.DANGER_LIGHT).build()))
.addRow(Cell.of("bar"),
Cell.of("1300000", TableCellStyle.builder().background(Defaults.SUCCESS_LIGHT).build()),
Cell.of("99", TableCellStyle.builder().background(Defaults.SUCCESS_LIGHT).build()))
.build();Table table = new Table(TableStyle.DEFAULT, data);
table.setAutoSize();
table.saveAsPNG(file);
----