1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* better minimum size for selection dialogs

This commit is contained in:
Reinhard Pointner 2011-09-03 09:23:49 +00:00
parent 01e9ea6544
commit 5c6e879f6c
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import static javax.swing.ScrollPaneConstants.*;
import static net.sourceforge.filebot.ui.NotificationLogging.*;
import static net.sourceforge.tuned.ui.TunedUtilities.*;
import java.awt.Dimension;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.net.URI;
@ -394,6 +395,7 @@ public abstract class AbstractSearchPanel<S, E> extends JComponent {
protected void configureSelectDialog(SelectDialog<SearchResult> selectDialog) {
selectDialog.setLocation(getOffsetLocation(selectDialog.getOwner()));
selectDialog.setIconImage(getImage(getIcon()));
selectDialog.setMinimumSize(new Dimension(250, 150));
}

View File

@ -8,6 +8,7 @@ import static net.sourceforge.filebot.MediaTypes.*;
import static net.sourceforge.tuned.FileUtilities.*;
import static net.sourceforge.tuned.ui.TunedUtilities.*;
import java.awt.Dimension;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
@ -83,6 +84,7 @@ class EpisodeListMatcher implements AutoCompleteMatcher {
selectDialog.getHeaderLabel().setText(String.format("Shows matching '%s':", query));
selectDialog.getCancelAction().putValue(Action.NAME, "Ignore");
selectDialog.setMinimumSize(new Dimension(250, 150));
selectDialog.pack();
// show dialog