Skip to content

Commit

Permalink
Resize filename and dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
phdelodder committed Mar 22, 2015
1 parent 36d6c58 commit 00b09a5
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public SelectDialog(JFrame frame, List<Subtitle> subtitles, Release release) {
}

private void initialize() {
setBounds(100, 100, 850, 100);
getContentPane().setLayout(new MigLayout("", "[grow,fill]", "[][::100px,fill][grow]"));
getContentPane().setLayout(new MigLayout("", "[1000px:n,grow,fill]", "[][::100px,fill][grow]"));
JLabel lblNewLabel =
new JLabel(Messages.getString("SelectDialog.SelectCorrectSubtitleThisRelease")
+ release.getFilename());
Expand Down Expand Up @@ -135,18 +134,17 @@ private CustomTable createCustomTable() {

int columnId = customTable.getColumnIdByName(SubtitleTableColumnName.SELECT);
customTable.getColumnModel().getColumn(columnId).setResizable(false);
customTable.getColumnModel().getColumn(columnId).setPreferredWidth(65);
customTable.getColumnModel().getColumn(columnId).setMaxWidth(65);
customTable.getColumnModel().getColumn(columnId).setPreferredWidth(55);
customTable.getColumnModel().getColumn(columnId).setMaxWidth(55);

columnId = customTable.getColumnIdByName(SubtitleTableColumnName.SCORE);
customTable.getColumnModel().getColumn(columnId).setResizable(false);
customTable.getColumnModel().getColumn(columnId).setPreferredWidth(70);
customTable.getColumnModel().getColumn(columnId).setMaxWidth(70);
customTable.getColumnModel().getColumn(columnId).setPreferredWidth(60);
customTable.getColumnModel().getColumn(columnId).setMaxWidth(60);

columnId = customTable.getColumnIdByName(SubtitleTableColumnName.FILENAME);
customTable.getColumnModel().getColumn(columnId).setResizable(true);
customTable.getColumnModel().getColumn(columnId).setPreferredWidth(300);
customTable.getColumnModel().getColumn(columnId).setMaxWidth(500);
customTable.getColumnModel().getColumn(columnId).setMinWidth(500);

for (Subtitle subtitle : subtitles) {
subtitleTableModel.addRow(subtitle);
Expand Down

0 comments on commit 00b09a5

Please sign in to comment.