properly set size of tables
This commit is contained in:
@@ -35,7 +35,7 @@ class DownloadsView extends BasicWindow {
|
||||
table.setCellSelection(false)
|
||||
table.setSelectAction({rowSelected()})
|
||||
table.setTableModel(model.model)
|
||||
table.setSize(terminalSize)
|
||||
table.setVisibleRows(terminalSize.getRows())
|
||||
contentPanel.addComponent(table, GridLayout.createLayoutData(Alignment.CENTER, Alignment.CENTER))
|
||||
|
||||
Button closeButton = new Button("Close",{close()})
|
||||
|
||||
@@ -40,7 +40,7 @@ class FilesView extends BasicWindow {
|
||||
table.setCellSelection(false)
|
||||
table.setTableModel(model.model)
|
||||
table.setSelectAction({rowSelected()})
|
||||
table.setSize(terminalSize)
|
||||
table.setVisibleRows(terminalSize.getRows())
|
||||
contentPanel.addComponent(table, layoutData)
|
||||
|
||||
Panel buttonsPanel = new Panel()
|
||||
|
||||
@@ -39,7 +39,7 @@ class ResultsView extends BasicWindow {
|
||||
table.setCellSelection(false)
|
||||
table.setSelectAction({rowSelected()})
|
||||
table.setTableModel(model.model)
|
||||
table.setSize(terminalSize)
|
||||
table.setVisibleRows(terminalSize.getRows())
|
||||
contentPanel.addComponent(table, GridLayout.createLayoutData(Alignment.CENTER, Alignment.CENTER))
|
||||
|
||||
Button closeButton = new Button("Close", {close()})
|
||||
|
||||
@@ -34,7 +34,7 @@ class SearchView extends BasicWindow {
|
||||
table.setCellSelection(false)
|
||||
table.setSelectAction({rowSelected()})
|
||||
table.setTableModel(model.model)
|
||||
table.setSize(terminalSize)
|
||||
table.setVisibleRows(terminalSize.getRows())
|
||||
contentPanel.addComponent(table, GridLayout.createLayoutData(Alignment.CENTER, Alignment.CENTER))
|
||||
|
||||
Button closeButton = new Button("Close", {
|
||||
|
||||
@@ -27,7 +27,7 @@ class UploadsView extends BasicWindow {
|
||||
table = new Table("Name","Progress","Downloader","Remote Pieces")
|
||||
table.setCellSelection(false)
|
||||
table.setTableModel(model.model)
|
||||
table.setSize(terminalSize)
|
||||
table.setVisibleRows(terminalSize.getRows())
|
||||
contentPanel.addComponent(table, layoutData)
|
||||
|
||||
Button closeButton = new Button("Close",{close()})
|
||||
|
||||
Reference in New Issue
Block a user