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);
Super simple swing component to render tables
License
ocadaruma/lowtable
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Super simple swing component to render tables
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published