From d7215de8c581db4d01ac28b07f89c9775692e4b4 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 16 Oct 2016 17:50:56 +0800 Subject: [PATCH] Port to MigLayout 5.0 --- source/net/filebot/ui/subtitle/SubtitleAutoMatchDialog.java | 4 ++-- .../net/filebot/ui/subtitle/upload/SubtitleUploadDialog.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/ui/subtitle/SubtitleAutoMatchDialog.java b/source/net/filebot/ui/subtitle/SubtitleAutoMatchDialog.java index 7e0d59aa..68eb06f3 100644 --- a/source/net/filebot/ui/subtitle/SubtitleAutoMatchDialog.java +++ b/source/net/filebot/ui/subtitle/SubtitleAutoMatchDialog.java @@ -96,7 +96,7 @@ class SubtitleAutoMatchDialog extends JDialog { preferredSubtitleNaming.setSelectedItem(SubtitleNaming.MATCH_VIDEO_ADD_LANGUAGE_TAG); 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(hashMatcherServicePanel, "gap after rel"); @@ -111,7 +111,7 @@ class SubtitleAutoMatchDialog extends JDialog { } 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.setOpaque(false); panel.setBackground(color); diff --git a/source/net/filebot/ui/subtitle/upload/SubtitleUploadDialog.java b/source/net/filebot/ui/subtitle/upload/SubtitleUploadDialog.java index e0632b03..0a27992d 100644 --- a/source/net/filebot/ui/subtitle/upload/SubtitleUploadDialog.java +++ b/source/net/filebot/ui/subtitle/upload/SubtitleUploadDialog.java @@ -58,7 +58,7 @@ public class SubtitleUploadDialog extends JDialog { subtitleMappingTable = createTable(); 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");