Skip to content

Commit

Permalink
Width of the first column is fixed now
Browse files Browse the repository at this point in the history
Signed-off-by: nikomall34 <[email protected]>
  • Loading branch information
nikomall34 committed Dec 4, 2023
1 parent dcd6272 commit 736f325
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ class LatestPiTestReport : JPanel() {
table.intercellSpacing = Dimension(0, 0)

table.columnModel.getColumn(0).cellRenderer = CustomProgressBarRenderer()

val firstColumnWidth = table.tableHeader.getFontMetrics(table.tableHeader.font).stringWidth(" Pit Test Coverage Report ") + 5
table.columnModel.getColumn(0).maxWidth = firstColumnWidth
table.columnModel.getColumn(0).minWidth = firstColumnWidth
table.columnModel.getColumn(0).preferredWidth = firstColumnWidth
table.columnModel.getColumn(0).width = firstColumnWidth

table.columnModel.getColumn(1).cellRenderer = CustomProgressBarRenderer()

layout = BorderLayout()
Expand Down

0 comments on commit 736f325

Please sign in to comment.