From 54b3193301c9cd18435d81650dd76869f4e6a006 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 22 Oct 2015 07:24:36 +0000 Subject: [PATCH] * tooltips --- source/net/filebot/ui/rename/PresetEditor.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/ui/rename/PresetEditor.java b/source/net/filebot/ui/rename/PresetEditor.java index bb02ed09..76bcfed1 100644 --- a/source/net/filebot/ui/rename/PresetEditor.java +++ b/source/net/filebot/ui/rename/PresetEditor.java @@ -101,9 +101,7 @@ public class PresetEditor extends JDialog { inputPanel.add(new JLabel("Input Folder:"), "gap indent"); inputPanel.add(pathInput, "growx, gap rel"); inputPanel.add(createImageButton(selectInputFolder), "gap 0px, wrap"); - JLabel includesLabel = new JLabel("Includes:"); - includesLabel.setToolTipText("Groovy File Filter
• fn =~ /alias/
• ext =~ /mp4/
• minutes > 100
• file.isEpisode()
• …
"); - inputPanel.add(includesLabel, "gap indent, skip 1, split 3"); + inputPanel.add(new JLabel("Includes:"), "gap indent, skip 1, split 3"); inputPanel.add(wrapEditor(filterEditor), "growx, gap rel"); inputPanel.add(createImageButton(listFiles), "gap rel"); @@ -146,6 +144,9 @@ public class PresetEditor extends JDialog { updateComponentStates(); setSize(650, 570); + + // add helpful tooltips + filterEditor.setToolTipText(FILE_FILTER_TOOLTIP); } public void updateComponentStates() { @@ -428,4 +429,6 @@ public class PresetEditor extends JDialog { } }; + private static final String FILE_FILTER_TOOLTIP = "Groovy File Filter
• fn =~ /alias/
• ext =~ /mp4/
• minutes > 100
• file.isEpisode()
• …
"; + }