Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.PanelBuilder.addSeparator()


    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();
    builder.setDefaultDialogBorder();

    int y = 1;
    builder.addSeparator(getTitle(), cc.xywh(1, y, 3, 1));

    y += 2;
    //i18n[sqlparam.valueFor=Value for {0}]
    builder.addLabel(stringMgr.getString("sqlparam.valueFor", parameter), cc.xy(1, y));
    builder.add(value, cc.xywh(3, y, 1, 1));
View Full Code Here


    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();
    builder.setDefaultDialogBorder();

    int y = 1;
    builder.addSeparator(getTitle(), cc.xywh(1, y, 3, 1));

    y += 2;
    builder.addLabel(s_stringMgr.getString("ConnectionInternalFrame.alias"), cc.xy(1, y));
    builder.add(_aliasName, cc.xywh(3, y, 1, 1));
View Full Code Here

    y += 2;
    builder.addLabel(s_stringMgr.getString("ConnectionInternalFrame.warningcapslock"),
              cc.xywh(1, y, 3, 1));

    y += 2;
    builder.addSeparator("", cc.xywh(1, y, 3, 1));

    y += 2;
    builder.add(_btnsPnl, cc.xywh(1, y, 3, 1));

View Full Code Here

    JPanel panel = new JPanel(new FormLayout("pref,1dlu:grow,pref","pref"));
    panel.add(mSearchUserDefinedRB, cc.xy(1,1));
    panel.add(mChangeSearchFieldsBt, cc.xy(3,1));
    searchInPanel.add(panel, cc.xy(2,5));

    optionsPanel.addSeparator(Localizer.getLocalization(Localizer.I18N_OPTIONS), cc.xyw(1,1,3));

    mCaseSensitiveChB = new JCheckBox(mLocalizer.msg("caseSensitive", "Case sensitive"));
    optionsPanel.add(mCaseSensitiveChB, cc.xy(2,3));

    bg = new ButtonGroup();
View Full Code Here

    });
   
    CellConstraints cc = new CellConstraints();
   
    if(withTitle) {
      pb.addSeparator(title == null ? LOCALIZER.msg("defaultTitle","Send programs to:") : title, cc.xyw(1,1,5));
      pb.add(mReceiveTargetLabel, cc.xy(2,3));
      pb.add(selectionButton, cc.xy(4,3));
    }
    else {
      pb.add(mReceiveTargetLabel, cc.xy(2,1));
View Full Code Here

    JButton lostPassword = new JButton(mLocalizer.msg("lostPassword", "Lost Password?"));
   
    pb.add(mOwnRating, cc.xyw(2,2,6));
    pb.addLabel(mLocalizer.msg("transmit", "Transmit data") + ":", cc.xy(2,4));
    pb.add(mUpdateTime, cc.xyw(4,4,4));
    pb.addSeparator(mLocalizer.msg("accountsetting", "Account settings"), cc.xyw(1,6,8));
    pb.addLabel(mLocalizer.msg("name", "Name") + ":", cc.xy(2,8));
    pb.add(mName, cc.xyw(4,8,4));
    pb.addLabel(mLocalizer.msg("password", "Password") + ":", cc.xy(2,10));
    pb.add(mPassword, cc.xyw(4,10,4));
    pb.add(newAccount, cc.xy(5,12));
View Full Code Here

    CellConstraints cc = new CellConstraints();
    PanelBuilder pb = new PanelBuilder(new FormLayout("5dlu,0dlu:grow,5dlu","pref,5dlu,pref,5dlu,pref,5dlu,pref,fill:10dlu:grow,pref"), (JPanel)this.getContentPane());
    pb.setDefaultDialogBorder();
   
    pb.addSeparator(mLocalizer.msg("sendTo", "Send {0} programs to", mPrograms.length), cc.xyw(1,1,3));
   
    // get the installed plugins
    ProgramReceiveIf[] installedPluginArr = Plugin.getPluginManager().getReceiveIfs(mCaller,mCallerTarget);

    Arrays.sort(installedPluginArr, new ObjectComparator());
View Full Code Here

    Arrays.sort(installedPluginArr, new ObjectComparator());
   
    mPluginList = new JComboBox(installedPluginArr);
    pb.add(mPluginList, cc.xy(2, 3));

    pb.addSeparator(mLocalizer.msg("target","Target:"), cc.xyw(1,5,3));
   
    mTargetList = new JComboBox(installedPluginArr[0]
        .getProgramReceiveTargets());
    pb.add(mTargetList, cc.xy(2, 7));
    final DefaultComboBoxModel model = (DefaultComboBoxModel)mTargetList.getModel();
View Full Code Here

    CellConstraints cc = new CellConstraints();

    // Top
    PanelBuilder topPanel = new PanelBuilder(new FormLayout("fill:10dlu:grow", "pref, 5dlu, fill:pref:grow"));
    topPanel.setBorder(Borders.DLU4_BORDER);
    topPanel.addSeparator(mLocalizer.msg("original","Original text"), cc.xy(1,1));

    mOriginal = new JTextArea();
    mOriginal.setWrapStyleWord(false);
    mOriginal.setEditable(false);
View Full Code Here

    topPanel.add(new JScrollPane(mOriginal), cc.xy(1,3));

    // Bottom
    PanelBuilder bottomPanel = new PanelBuilder(new FormLayout("fill:10dlu:grow", "pref, 5dlu, fill:pref:grow"));
    bottomPanel.setBorder(Borders.DLU4_BORDER);
    bottomPanel.addSeparator(mLocalizer.msg("translation","Translation"), cc.xy(1,1));
    mTranslation = new JTextArea();
    mTranslation.getDocument().addDocumentListener(new DocumentListener() {
      public void changedUpdate(DocumentEvent e) {
        updateState();
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.