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);
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);

View File

@ -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");