1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 23:05:03 -05:00

Port to MigLayout 5.0

This commit is contained in:
Reinhard Pointner 2016-10-16 17:50:56 +08:00
parent f1bf5e798f
commit d7215de8c5
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ class SubtitleAutoMatchDialog extends JDialog {
preferredSubtitleNaming.setSelectedItem(SubtitleNaming.MATCH_VIDEO_ADD_LANGUAGE_TAG); preferredSubtitleNaming.setSelectedItem(SubtitleNaming.MATCH_VIDEO_ADD_LANGUAGE_TAG);
JComponent content = (JComponent) getContentPane(); JComponent content = (JComponent) getContentPane();
content.setLayout(new MigLayout("fill, insets 12 15 7 15, nogrid", "", "[fill][pref!]")); content.setLayout(new MigLayout("fill, insets 12 15 7 15, nogrid, novisualpadding", "", "[fill][pref!]"));
content.add(new JScrollPane(subtitleMappingTable), "grow, wrap"); content.add(new JScrollPane(subtitleMappingTable), "grow, wrap");
content.add(hashMatcherServicePanel, "gap after rel"); content.add(hashMatcherServicePanel, "gap after rel");
@ -111,7 +111,7 @@ class SubtitleAutoMatchDialog extends JDialog {
} }
protected JPanel createServicePanel(Color color) { protected JPanel createServicePanel(Color color) {
JPanel panel = new JPanel(new MigLayout("hidemode 3")); JPanel panel = new JPanel(new MigLayout("hidemode 3, novisualpadding"));
panel.setBorder(new RoundBorder()); panel.setBorder(new RoundBorder());
panel.setOpaque(false); panel.setOpaque(false);
panel.setBackground(color); panel.setBackground(color);

View File

@ -58,7 +58,7 @@ public class SubtitleUploadDialog extends JDialog {
subtitleMappingTable = createTable(); subtitleMappingTable = createTable();
JComponent content = (JComponent) getContentPane(); JComponent content = (JComponent) getContentPane();
content.setLayout(new MigLayout("fill, insets dialog, nogrid", "", "[fill][pref!]")); content.setLayout(new MigLayout("fill, insets dialog, nogrid, novisualpadding", "", "[fill][pref!]"));
content.add(new JScrollPane(subtitleMappingTable), "grow, wrap"); content.add(new JScrollPane(subtitleMappingTable), "grow, wrap");