Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One way to erase the blank line following the spring-shell tables is to add the following line of code:

shellTableRenderer.setAutoSizing(true);

This sets the shell table renderer to automatically adjust the table size to remove any empty rows. Alternatively, you can also set the table size explicitly using:

shellTableRenderer.setSize(tableRows);

where tableRows is the number of rows in the table. This ensures that the table takes up the exact amount of space needed for the data without any unnecessary empty rows.