[fix][Resolves #378] Component Preset Dialog has an appropriately sized search bar

This commit is contained in:
Daniel_M_Williams 2018-03-03 17:00:28 -05:00
parent 28bdfac550
commit 786ca55c45

View File

@ -106,7 +106,7 @@ public class ComponentPresetChooserDialog extends JDialog {
sub.add(filterLabel, "gapright para");
filterText = new JTextField();
sub.add(filterText, "growx");
sub.add(filterText, "width 50:320, growx");
filterText.getDocument().addDocumentListener(new DocumentListener() {
@Override
public void changedUpdate(DocumentEvent e) {
@ -174,7 +174,7 @@ public class ComponentPresetChooserDialog extends JDialog {
private JPanel getFilterCheckboxes() {
SymmetricComponent sc;
JPanel panel = new JPanel(new MigLayout("fill, ins 0"));
JPanel panel = new JPanel(new MigLayout("ins 0"));
/*
* Add show all compatible check box.