当前位置: 首页>>代码示例>>Java>>正文


Java PanelBuilder.setDefaultDialogBorder方法代码示例

本文整理汇总了Java中com.jgoodies.forms.builder.PanelBuilder.setDefaultDialogBorder方法的典型用法代码示例。如果您正苦于以下问题:Java PanelBuilder.setDefaultDialogBorder方法的具体用法?Java PanelBuilder.setDefaultDialogBorder怎么用?Java PanelBuilder.setDefaultDialogBorder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jgoodies.forms.builder.PanelBuilder的用法示例。


在下文中一共展示了PanelBuilder.setDefaultDialogBorder方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: makePanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void makePanel() {

		FormLayout layout = new FormLayout(
				"2dlu:grow, right:80dlu, 5dlu, 70dlu, 10dlu, 70dlu, 5dlu, 30dlu, 50dlu, 2dlu:grow",
				"30dlu, pref, 20dlu, pref, 20dlu, pref, 10dlu, pref, 10dlu, pref, 10dlu, pref, 30dlu, pref, 2dlu:grow");
		CellConstraints cc = new CellConstraints();
		pb = new PanelBuilder(layout);
		pb.setDefaultDialogBorder();

		pb.add(getCmbReport(), cc.xyw(4, 2, 3));
		pb.add(getLName(), cc.xyw(2, 4, 8, "center, center"));

		pb.addSeparator("", cc.xyw(4, 6, 3));
		pb.add(getLTfCmb(), cc.xy(2, 8));
		pb.add(getTfNumber(), cc.xyw(4, 8, 3));
		pb.add(getCmbGroup(), cc.xyw(4, 8, 3));
		pb.addLabel("Datum", cc.xy(2, 10));
		pb.add(getTfStartDate(), cc.xy(4, 10));
		pb.addLabel("-", cc.xy(5, 10, "center, center"));
		pb.add(getTfEndDate(), cc.xy(6, 10));

		pb.addLabel("Odeljenje", cc.xy(2, 12));
		pb.add(getCmbLocation(), cc.xyw(4, 12, 3));

		pb.add(getButtonPanel(), cc.xyw(2, 14, 8));
	}
 
开发者ID:unsftn,项目名称:bisis-v4,代码行数:27,代码来源:Report.java

示例2: defineLayout

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void defineLayout ()
{
    FormLayout layout = Panel.makeFormLayout(1, 3);
    PanelBuilder builder = new PanelBuilder(layout, getBody());
    builder.setDefaultDialogBorder();

    CellConstraints cst = new CellConstraints();

    int r = 1; // --------------------------------
    builder.add(mean.getLabel(), cst.xy(1, r));
    builder.add(mean.getField(), cst.xy(3, r));

    builder.add(stdDev.getLabel(), cst.xy(5, r));
    builder.add(stdDev.getField(), cst.xy(7, r));

    builder.add(threshold.getLabel(), cst.xy(9, r));
    builder.add(threshold.getField(), cst.xy(11, r));
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:19,代码来源:BinarizationBoard.java

示例3: TrainingPanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
/**
 * Creates a new TrainingPanel object.
 *
 * @param task           the current training task
 * @param standardWidth  standard width for fields & buttons
 * @param engine         the underlying engine to train
 * @param selectionPanel user panel for glyphs selection
 * @param totalRows      total number of display rows, interlines not
 *                       counted
 */
public TrainingPanel (GlyphTrainer.Task task,
                      String            standardWidth,
                      EvaluationEngine  engine,
                      SelectionPanel    selectionPanel,
                      int               totalRows)
{
    this.engine = engine;
    this.task = task;
    this.selectionPanel = selectionPanel;

    component = new Panel();
    component.setNoInsets();

    FormLayout layout = Panel.makeFormLayout(
        totalRows,
        4,
        "",
        standardWidth,
        standardWidth);

    builder = new PanelBuilder(layout, component);
    builder.setDefaultDialogBorder(); // Useful ?

    defineLayout();
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:36,代码来源:TrainingPanel.java

示例4: createGlobalPanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private JPanel createGlobalPanel ()
{
    final String panelInterline = Panel.getPanelInterline();
    FormLayout layout = new FormLayout(
            "pref",
            "pref," + panelInterline + "," + "pref," + panelInterline + ","
            + "pref," + panelInterline + "," + "pref");

    CellConstraints cst = new CellConstraints();
    PanelBuilder builder = new PanelBuilder(layout, new Panel());
    builder.setDefaultDialogBorder();

    int r = 1; // --------------------------------
    builder.add(selectionPanel.getComponent(), cst.xy(1, r));

    r += 2; // --------------------------------
    builder.add(networkPanel.getComponent(), cst.xy(1, r));

    r += 2; // --------------------------------
    builder.add(validationPanel.getComponent(), cst.xy(1, r));

    r += 2; // --------------------------------
    builder.add(regressionPanel.getComponent(), cst.xy(1, r));

    return builder.getPanel();
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:27,代码来源:GlyphTrainer.java

示例5: defineLayout

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void defineLayout ()
{
    CellConstraints cst = new CellConstraints();
    FormLayout layout = Panel.makeFormLayout(4, 3);
    PanelBuilder builder = new PanelBuilder(layout, super.getBody());
    builder.setDefaultDialogBorder();

    int r = 1; // --------------------------------
    builder.add(load, cst.xy(11, r));

    r += 2; // --------------------------------
    builder.add(all, cst.xy(3, r));
    builder.add(prev, cst.xy(7, r));
    builder.add(next, cst.xy(11, r));

    r += 2; // --------------------------------

    JLabel file = new JLabel("File", SwingConstants.RIGHT);
    builder.add(file, cst.xy(1, r));

    nameField.getField()
            .setHorizontalAlignment(JTextField.LEFT);
    builder.add(nameField.getField(), cst.xyw(3, r, 9));
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:25,代码来源:GlyphBrowser.java

示例6: defineLayout

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void defineLayout ()
{
    final String fieldInterline = Panel.getFieldInterline();

    String colSpec = Panel.makeColumns(3);
    FormLayout layout = new FormLayout(
            colSpec,
            "pref," + fieldInterline + "," + "pref");

    PanelBuilder builder = new PanelBuilder(layout, getBody());
    builder.setDefaultDialogBorder();

    CellConstraints cst = new CellConstraints();

    int r = 1; // --------------------------------
    builder.add(browser.count, cst.xy(1, r));
    builder.add(browser.spinner, cst.xy(3, r));
    builder.add(selectButton, cst.xywh(7, r, 5, 3));

    r += 2; // --------------------------------
    builder.add(filterButton, cst.xyw(1, r, 3));
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:23,代码来源:ShapeFocusBoard.java

示例7: getSelectorsPanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private JPanel getSelectorsPanel ()
{
    FormLayout layout = new FormLayout(
            "max(100dlu;pref),max(150dlu;pref),max(200dlu;pref):grow", // Cols
            "pref:grow"); // Rows

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

    CellConstraints cst = new CellConstraints();

    int r = 1; // --------------------------------
    builder.add(folderSelector, cst.xy(1, r));
    builder.add(shapeSelector, cst.xy(2, r));
    builder.add(glyphSelector, cst.xy(3, r));

    return builder.getPanel();
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:19,代码来源:SampleVerifier.java

示例8: defineLayout

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void defineLayout ()
{
    FormLayout layout = Panel.makeFormLayout(1, 3);
    PanelBuilder builder = new PanelBuilder(layout, getBody());
    builder.setDefaultDialogBorder();

    CellConstraints cst = new CellConstraints();
    int r = 1; // --------------------------------

    builder.add(rStart.getLabel(), cst.xy(1, r));
    builder.add(rStart.getField(), cst.xy(3, r));

    builder.add(rLength.getLabel(), cst.xy(5, r));
    builder.add(rLength.getField(), cst.xy(7, r));

    builder.add(rLevel.getLabel(), cst.xy(9, r));
    builder.add(rLevel.getField(), cst.xy(11, r));
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:19,代码来源:RunBoard.java

示例9: getSettings

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private Component getSettings() {
	FormLayout layout = new FormLayout("right:max(72dlu;p), 10dlu, 75dlu, 10dlu", "5dlu, p, 5dlu");
       PanelBuilder builder = new PanelBuilder(layout);
       builder.setDefaultDialogBorder();
       builder.setBorder(new TitledBorder("Settings"));
       
       Vector<Direction> vec = new Vector<Direction>();
       vec.add(Direction.BOTH);
       vec.add(Direction.SOURCE);
       vec.add(Direction.TARGET);
       cbDirection = new JComboBox(vec);
       cbDirection.setSelectedIndex(0);
       
       builder.add(new JLabel("Select direction"), cc.xy(1, 2));
       builder.add(cbDirection, cc.xy(3, 2));
       return builder.getPanel();
}
 
开发者ID:CyTargetLinker,项目名称:cytargetlinker,代码行数:18,代码来源:ExtensionDialog.java

示例10: makePanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void makePanel() {
	FormLayout layout = new FormLayout(
			"2dlu:grow, 15dlu, 18dlu, 15dlu, 18dlu, 3dlu, 90dlu, 15dlu, 18dlu, 15dlu, 18dlu, 30dlu, 55dlu, 5dlu, 55dlu, 2dlu:grow", //$NON-NLS-1$
			"5dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 20dlu, pref, 2dlu, pref, 5dlu, pref, 5dlu, pref, 2dlu, 80dlu, 2dlu, 18dlu, 2dlu:grow "); //$NON-NLS-1$
	CellConstraints cc = new CellConstraints();
	pb = new PanelBuilder(layout);
	pb.setDefaultDialogBorder();
	
	pb.addSeparator(Messages.getString("circulation.info"), cc.xyw(2,2,14)); //$NON-NLS-1$
	pb.addLabel(Messages.getString("circulation.user"), cc.xyw(2,4,4,"right, center")); //$NON-NLS-1$ //$NON-NLS-2$
	pb.add(getLUser(), cc.xyw(7,4,4));
	pb.addLabel(Messages.getString("circulation.mmbrexpirdate"), cc.xyw(2,6,4,"right, center")); //$NON-NLS-1$ //$NON-NLS-2$
	pb.add(getLUntilDate(), cc.xyw(7,6,4));
	pb.addLabel(Messages.getString("circulation.note"), cc.xyw(2,8,4,"right, center")); //$NON-NLS-1$ //$NON-NLS-2$
	pb.add(getLNote(), cc.xyw(7,8,4));
	
	pb.add(getLBlockCard(), cc.xyw(11,4,5));
	pb.add(getLDuplicate(), cc.xyw(11,6,5));
	
	pb.addSeparator(Messages.getString("circulation.charging"), cc.xyw(2,16,14)); //$NON-NLS-1$
	pb.add(getJScrollPane(), cc.xyw(2,18,14));
	pb.add(getBtnReturn(), cc.xy(3,20,"fill, fill")); //$NON-NLS-1$
	pb.add(getBtnResume(), cc.xy(5,20,"fill, fill")); //$NON-NLS-1$
	
	pb.add(getBtnRevers(), cc.xy(13,20));
	pb.add(getBtnHistory(), cc.xy(15,20));
	
	pb.addSeparator(Messages.getString("circulation.checkout"), cc.xyw(2,10,10)); //$NON-NLS-1$
	pb.addLabel(Messages.getString("circulation.acquisitionnumber"), cc.xyw(2,12,4,"right, center")); //$NON-NLS-1$ //$NON-NLS-2$
	pb.add(getTfCtlgNo(), cc.xy(7,12));
	pb.add(getBtnLend(), cc.xy(9,12,"fill, fill")); //$NON-NLS-1$
	pb.add(getBtnSearch(), cc.xy(11,12,"fill, fill")); //$NON-NLS-1$
	pb.add(getLWarnings(), cc.xyw(13,10,3,"right, center")); //$NON-NLS-1$
	pb.add(getBtnWarnings(), cc.xy(15,12,"fill, fill")); //$NON-NLS-1$
   
}
 
开发者ID:unsftn,项目名称:bisis-v4,代码行数:37,代码来源:Lending.java

示例11: getJContentPane

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private JPanel getJContentPane() {
	if (jContentPane == null) {
     FormLayout layout = new FormLayout(
         "2dlu:grow ,left:100dlu, 2dlu:grow",  //$NON-NLS-1$
         "5dlu, pref, 2dlu, pref, 2dlu:grow"); //$NON-NLS-1$
     CellConstraints cc = new CellConstraints();
     pb = new PanelBuilder(layout);
     pb.setDefaultDialogBorder();
     pb.addLabel(Messages.getString("circulation.note"), cc.xy(2,2)); //$NON-NLS-1$
     pb.add(getJTextField(), cc.xy(2,4,"fill, fill")); //$NON-NLS-1$
		jContentPane = pb.getPanel();
	}
	return jContentPane;
}
 
开发者ID:unsftn,项目名称:bisis-v4,代码行数:15,代码来源:Note.java

示例12: makePanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void makePanel() {
	FormLayout layout = new FormLayout(
	        "2dlu, 100dlu:grow, 2dlu",  //$NON-NLS-1$
	        "10dlu, pref, 2dlu, pref, 5dlu, 20dlu:grow, 5dlu, pref, 5dlu"); //$NON-NLS-1$
	CellConstraints cc = new CellConstraints();
	pb = new PanelBuilder(layout);
	pb.setDefaultDialogBorder();
	pb.add(lUserNum,cc.xy(2,4));
	pb.add(getScrollPane(),cc.xy(2,6, "fill, fill")); //$NON-NLS-1$
	pb.add(getButtonPanel(),cc.xy(2,8));
	
}
 
开发者ID:unsftn,项目名称:bisis-v4,代码行数:13,代码来源:SearchUsersResults.java

示例13: makePanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void makePanel() {
	FormLayout layout = new FormLayout(
	        "2dlu:grow ,right:50dlu, 3dlu, 15dlu, 2dlu, 45dlu, 8dlu, 40dlu, 35dlu, right:60dlu, 3dlu, 85dlu, 5dlu, 18dlu, 2dlu:grow",  //$NON-NLS-1$
	        "5dlu, pref, 2dlu, 15dlu, 2dlu, pref, 35dlu, pref, 2dlu, 15dlu, 30dlu, pref, 2dlu, 5dlu, 18dlu, 6dlu, 18dlu, 6dlu, 18dlu, 5dlu, 2dlu:grow"); //$NON-NLS-1$
	CellConstraints cc = new CellConstraints();
	pb = new PanelBuilder(layout);
	pb.setDefaultDialogBorder();
	
	pb.addSeparator(Messages.getString("circulation.usernumber"), cc.xyw(2,2,7)); //$NON-NLS-1$
	pb.addLabel(Messages.getString("circulation.location"), cc.xy(2,4)); //$NON-NLS-1$
	pb.add(getCmbBranchID(), cc.xyw(4,4,5,"fill, fill")); //$NON-NLS-1$
	pb.add(getUserIDLabel(), cc.xy(2,6));
	pb.add(getTfBranch(), cc.xy(4,6));
	pb.add(getTfUserID(), cc.xy(6,6));
	pb.add(getBtnAuto(), cc.xy(8,6));
	
	pb.addSeparator("", cc.xyw(2,8,7)); //$NON-NLS-1$
	pb.add(getUserCategLabel(), cc.xy(2,10));
	pb.add(getCmbCateg(), cc.xyw(4,10,5,"fill, fill")); //$NON-NLS-1$

	pb.addSeparator("",cc.xyw(10,8,5)); //$NON-NLS-1$
	pb.add(getMmbrTypeLabel(), cc.xy(10,10));
	pb.add(getCmbMmbrType(), cc.xyw(12,10,3,"fill, fill")); //$NON-NLS-1$
	
	pb.addSeparator(Messages.getString("circulation.corporate"), cc.xyw(10,2,5)); //$NON-NLS-1$
	pb.add(getRbGroupY(), cc.xy(10,4));
	pb.add(getRbGroupN(), cc.xy(10,6));
	pb.add(getCmbGroups(), cc.xyw(12,4,3,"fill, fill")); //$NON-NLS-1$
	
	pb.addSeparator(Messages.getString("circulation.membershipfee"),cc.xyw(2,12,13)); //$NON-NLS-1$
	pb.add(getJScrollPane(), cc.xywh(2,14,11,7));
	pb.add(getBtnAdd(), cc.xy(14,15,"fill, fill")); //$NON-NLS-1$
	pb.add(getBtnRemove(), cc.xy(14,17,"fill, fill")); //$NON-NLS-1$
	pb.add(getBtnPrint(), cc.xy(14,19,"fill, fill")); //$NON-NLS-1$
	
}
 
开发者ID:unsftn,项目名称:bisis-v4,代码行数:37,代码来源:Membership.java

示例14: createMainPanel

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private Component createMainPanel()
{

	final FormLayout layout = new FormLayout(
		// Columns
		"center:pref",
		// Rows
		"pref, 6dlu, pref, 6dlu, pref, 6dlu, pref");

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

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

	y += 2;
	//i18n[PleaseWaitDialog.pleaseWait=Please wait while the query is executed]
	builder.addLabel(stringMgr.getString("PleaseWaitDialog.pleaseWait"), cc.xy(1, y));

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

	//i18n[PleaseWaitDialog.cancel=Cancel]
	cancelButton = new JButton(stringMgr.getString("PleaseWaitDialog.cancel"));
	cancelButton.addActionListener(this);
	
	y += 2;
	builder.add(cancelButton, cc.xywh(1, y, 1, 1));

	return builder.getPanel();
}
 
开发者ID:realxujiang,项目名称:bigtable-sql,代码行数:33,代码来源:PleaseWaitDialog.java

示例15: defineLayout

import com.jgoodies.forms.builder.PanelBuilder; //导入方法依赖的package包/类
private void defineLayout (String name)
{
    FormLayout layout = new FormLayout("pref", "pref");
    PanelBuilder builder = new PanelBuilder(layout, getBody());
    builder.setDefaultDialogBorder();

    CellConstraints cst = new CellConstraints();

    int r = 1; // --------------------------------
    builder.add(checkPanel.getComponent(), cst.xy(1, r));
}
 
开发者ID:jlpoolen,项目名称:libreveris,代码行数:12,代码来源:CheckBoard.java


注:本文中的com.jgoodies.forms.builder.PanelBuilder.setDefaultDialogBorder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。