Package com.jgoodies.forms.layout

Examples of com.jgoodies.forms.layout.FormLayout


  private AddressBookAction addressBookAction;
 
  public AbstractFaxDialog(JFrame owner) {
    super(owner, BUTTON_OKAY | BUTTON_CANCEL);
 
    FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref, 3dlu, min, min:grow", "");
    builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    setMainComponent(builder.getPanel());
   
    parameterAction = new ParameterDialogAction();
View Full Code Here


  private JLabel emailLabel;

  private SpinnerNumberModel priorityModel;

  public JobPanel(boolean border) {
    FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref, pref:grow, min:grow", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
    if (border) {
      builder.setDefaultDialogBorder();
    }
    builder.appendSeparator(i18n.tr("Sender"));
View Full Code Here

 
  private void addDocumentsPanel()
  {
    documentFileChooserPanels = new ArrayList<FileChooserPanel>();
   
    FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref:grow", "");
    documentPanelBuilder = new DefaultFormBuilder(layout);
    FileChooserPanel documentFileChooserPanel = new MyFileChooserPanel(DEFAULT_COLUMNS);
    documentFileChooserPanel.getFileChooser().setMultiSelectionEnabled(true);
    documentFileChooserPanels.add(documentFileChooserPanel);
    documentLabel = documentPanelBuilder.append("", documentFileChooserPanel);
View Full Code Here

    builder.nextLine();
  }

  private void initializeCoverPanel()
  {
    FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref:grow", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    coverPanel = builder.getPanel();
    this.builder.appendRow(builder.getLineGapSpec());
    this.builder.nextLine();
    this.builder.appendRow("fill:pref:grow");
View Full Code Here

   
    return true;
  }

  private DefaultFormBuilder createForm() {
    FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref, pref:grow(0.5), pref:grow(0.5)", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    return builder;
  }
View Full Code Here

   
    pack();
  }

  private DefaultFormBuilder createForm() {
    FormLayout layout = new FormLayout("left:max(20dlu;pref), 3dlu, pref, pref:grow(0.5), pref:grow(0.5)", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    return builder;
  }
View Full Code Here

            checkLinks = new JCheckBox(Globals.lang("Check existing %0 links", fn), true);
            ButtonGroup bg = new ButtonGroup();
            bg.add(autoSetUnset);
            bg.add(autoSetNone);
            bg.add(autoSetAll);
            FormLayout layout = new FormLayout("fill:pref", "");
            DefaultFormBuilder builder = new DefaultFormBuilder(layout);
            description = new JLabel("<HTML>" +
                    Globals.lang(//"This function helps you keep your external %0 links up-to-date." +
                            "Attempt to autoset %0 links for your entries. Autoset works if "
                                    + "a %0 file in your %0 directory or a subdirectory<BR>is named identically to an entry's BibTeX key, plus extension.", fn)
View Full Code Here

    bg2.add(noAbbrNames);
    priDesc = new JCheckBox(Globals.lang("Descending"));
    secDesc = new JCheckBox(Globals.lang("Descending"));
    terDesc = new JCheckBox(Globals.lang("Descending"));

    FormLayout layout = new FormLayout(
      "1dlu, 8dlu, left:pref, 4dlu, fill:pref, 4dlu, fill:60dlu, 4dlu, fill:pref", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    JLabel lab;
    JPanel pan = new JPanel();
    builder.appendSeparator(Globals.lang("Special table columns"));
    builder.nextLine();
    builder.append(pan);
    builder.append(fileColumn);
    builder.nextLine();
        builder.append(pan);
        builder.append(pdfColumn);
        builder.nextLine();
        builder.append(pan);
        builder.append(urlColumn);
    builder.nextLine();
    builder.append(pan);
    builder.append(citeseerColumn);
    builder.nextLine();
    builder.appendSeparator(Globals.lang("Format of author and editor names"));
    DefaultFormBuilder nameBuilder = new DefaultFormBuilder(new FormLayout(
      "left:pref, 8dlu, left:pref", ""));

    nameBuilder.append(namesAsIs);
    nameBuilder.append(noAbbrNames);
    nameBuilder.nextLine();
    nameBuilder.append(namesFf);
    nameBuilder.append(abbrNames);
    nameBuilder.nextLine();
    nameBuilder.append(namesFl);
    nameBuilder.append(lastNamesOnly);
    nameBuilder.nextLine();
    nameBuilder.append(namesNatbib);
    builder.append(pan);
    builder.append(nameBuilder.getPanel());
    builder.nextLine();
    // builder.append(pan); builder.append(noAbbrNames); builder.nextLine();
    // builder.append(pan); builder.append(abbrNames); builder.nextLine();
    // builder.append(pan); builder.append(lastNamesOnly);
    // builder.nextLine();

    builder.appendSeparator(Globals.lang("Default sort criteria"));
    // Create a new panel with its own FormLayout for these items:
    FormLayout layout2 = new FormLayout(
      "left:pref, 8dlu, fill:pref, 4dlu, fill:60dlu, 4dlu, left:pref", "");
    DefaultFormBuilder builder2 = new DefaultFormBuilder(layout2);
    lab = new JLabel(Globals.lang("Primary sort criterion"));
    builder2.append(lab);
    builder2.append(priSort);
    builder2.append(priField);
    builder2.append(priDesc);
    builder2.nextLine();
    lab = new JLabel(Globals.lang("Secondary sort criterion"));
    builder2.append(lab);
    builder2.append(secSort);
    builder2.append(secField);
    builder2.append(secDesc);
    builder2.nextLine();
    lab = new JLabel(Globals.lang("Tertiary sort criterion"));
    builder2.append(lab);
    builder2.append(terSort);
    builder2.append(terField);
    builder2.append(terDesc);
    builder.nextLine();
    builder.append(pan);
    builder.append(builder2.getPanel());
    builder.nextLine();
    builder.append(pan);
    builder.append(floatMarked);
    builder.nextLine();
        builder.append(pan);
        builder2 = new DefaultFormBuilder(new FormLayout("left:pref, 8dlu, fill:pref",""));
        builder2.append(Globals.lang("Sort the following fields as numeric fields")+":");
        builder2.append(numericFields);
        builder.append(builder2.getPanel(), 5);
        builder.nextLine();
    builder.appendSeparator(Globals.lang("General"));
View Full Code Here

                useImportInspectorForSingle.setEnabled(useImportInspector.isSelected());
                inspectionWarnDupli.setEnabled(useImportInspector.isSelected());
            }
        });

        FormLayout layout = new FormLayout
                ("8dlu, 1dlu, left:170dlu, 4dlu, fill:pref, 4dlu, fill:pref, 4dlu, left:pref, 4dlu, left:pref, 4dlu, left:pref", "");
        DefaultFormBuilder builder = new DefaultFormBuilder(layout);


View Full Code Here

    }

    private void buildExternalsPanel() {

        DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout("fill:pref:grow",""));
        for (Iterator<ExternalFileEntry> i=externals.iterator(); i.hasNext();) {
            ExternalFileEntry efe = i.next();
            builder.append(efe.getPanel());
            builder.nextLine();
        }
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.layout.FormLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.