• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PanelBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: definePanel

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

    CellConstraints cst = new CellConstraints();
    PanelBuilder builder = new PanelBuilder(layout, new TitledPanel(classifier.getName()));
    Task task = new Task(classifier);

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

    r += 2; // --------------------------------
    builder.add(new ValidationPanel(task, selectionPanel, true).getComponent(), cst.xy(1, r));

    r += 2; // --------------------------------
    builder.add(new ValidationPanel(task, selectionPanel, false).getComponent(), cst.xy(1, r));

    return builder.getPanel();
}
 
开发者ID:Audiveris,项目名称:audiveris,代码行数:21,代码来源:Trainer.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:Audiveris,项目名称:audiveris,代码行数:19,代码来源:BinarizationBoard.java


示例3: defineLayout

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

    ///builder.setDefaultDialogBorder();
    CellConstraints cst = new CellConstraints();

    int r = 1; // --------------------------------
    builder.add(evalField, cst.xy(1, r));
    builder.add(anchorSpinner, cst.xyw(3, r, 3));
    builder.add(shapeSpinner, cst.xyw(7, r, 5));

    r += 2; // --------------------------------
    builder.add(keyPointField.getLabel(), cst.xy(9, r));
    builder.add(keyPointField.getField(), cst.xy(11, r));
}
 
开发者ID:Audiveris,项目名称:audiveris,代码行数:18,代码来源:TemplateBoard.java


示例4: defineLayout

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
@Override
public int defineLayout (PanelBuilder builder,
                         CellConstraints cst,
                         int r)
{
    r = super.defineLayout(builder, cst, r);

    builder.add(kindLabel, cst.xyw(5, r, 3));
    builder.add(kindCombo, cst.xyw(9, r, 3));
    r += 2;

    // Layout global and local data as mutual overlays
    globalData.defineLayout(builder, cst, r);
    r = localDataMean.defineLayout(builder, cst, r);
    r = localDataDev.defineLayout(builder, cst, r);

    return r;
}
 
开发者ID:Audiveris,项目名称:audiveris,代码行数:19,代码来源:ScoreParameters.java


示例5: 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:Audiveris,项目名称:audiveris,代码行数:21,代码来源:ShapeFocusBoard.java


示例6: getPanel

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
public JPanel getPanel() {
	if (_panel == null) {
		PanelBuilder b = new PanelBuilder(new FormLayout(
			"center:pref",
			"max(140px;pref), 3dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref"
		));
		b.opaque(true);
		CellConstraints cc = new CellConstraints();
		b.add(icon, cc.xy(1, 1));
		b.add(label, cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));
		b.add(rendererProgressBar, cc.xy(1, 5));
		b.add(playing, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));
		b.add(time, cc.xy(1, 9));
		_panel = b.getPanel();
	}
	return _panel;
}
 
开发者ID:DigitalMediaServer,项目名称:DigitalMediaServer,代码行数:18,代码来源:StatusTab.java


示例7: 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


示例8: getPluginData

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
private PanelBuilder getPluginData(BundleVersion p) {
	FormLayout layout = new FormLayout("5dlu, fill:pref:grow, 5dlu","5dlu,pref,15dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu");
	PanelBuilder builder = new PanelBuilder(layout);
	CellConstraints cc = new CellConstraints();
	builder.setBackground(Color.white);
	
	builder.addLabel(p.getBundle().getName(), cc.xy(2, 2));
	builder.addSeparator("", cc.xyw(2, 3, 1));
	builder.addLabel((p.getBundle().getName().equals(p.getBundle().getSymbolicName()) ? "Version: " + p.getVersion() : ("<html>Version: " + p.getVersion() + "<br>" + p.getBundle().getSymbolicName() + "</html>")), cc.xy(2, 4));
	builder.addLabel((p.getBundle().getShortDescription() != null ? Utils.printDescription(p.getBundle().getShortDescription(), 40) : ""), cc.xy(2, 6));
	builder.addLabel((p.getReleaseDate() != null ? "Release date: " + p.getReleaseDate() : ""), cc.xy(2, 10));

	builder.addLabel(Utils.printAuthors(p), cc.xy(2, 12));
	builder.add(getWebsiteLabel(p), cc.xy(2, 14));
	return builder;
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:17,代码来源:InstalledPluginsPanel.java


示例9: getPluginData

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
private PanelBuilder getPluginData(BundleVersion p) {
	FormLayout layout = new FormLayout("5dlu, fill:pref:grow, 5dlu","5dlu,pref,15dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu,pref,10dlu");
	PanelBuilder builder = new PanelBuilder(layout);
	CellConstraints cc = new CellConstraints();
	builder.setBackground(Color.white);
	
	builder.addLabel(p.getBundle().getName(), cc.xy(2, 2));
	builder.addSeparator("", cc.xyw(2, 3, 1));
	builder.addLabel((p.getBundle().getName().equals(p.getBundle().getSymbolicName()) ? "Version: " + p.getVersion() : ("<html>Version: " + p.getVersion() + "<br>" + p.getBundle().getSymbolicName() + "</html>")), cc.xy(2, 4));
	builder.addLabel((p.getBundle().getShortDescription() != null ? Utils.printDescription(p.getBundle().getShortDescription(), 40) : ""), cc.xy(2, 6));
	builder.addLabel((p.getReleaseDate() != null ? "Release date: " + p.getReleaseDate() : ""), cc.xy(2, 10));

	builder.addLabel(Utils.printAuthors(p), cc.xy(2, 12));
	builder.add(getWebsiteLabel(p), cc.xy(2, 14));
	
	return builder;
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:18,代码来源:AvailablePluginsPanel.java


示例10: AtsPositionSlider

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
public AtsPositionSlider(AtsPosition2D position) {
    this.position = position;

    FormLayout lm = new FormLayout("pref:grow, 1px, pref:grow", // columns
            "p");
    // new FormLayout("pref:grow, 2dlu, pref:grow, 2dlu, pref:grow, 2dlu,
    // pref:grow", "");
    PanelBuilder builder = new PanelBuilder(lm);
    // builder.setDefaultDialogBorder();

    setLayout(new GridLayout(1, 0));
    AtsSlider x = new AtsSlider(0, 255, position.getX());
    AtsSlider y = new AtsSlider(0, 255, position.getY());

    x.addPropertyChangeListener(this);
    y.addPropertyChangeListener(this);

    CellConstraints cc = new CellConstraints();

    builder.add(x, cc.xy(1, 1));
    builder.add(y, cc.xy(3, 1));

    add(builder.getPanel());
}
 
开发者ID:jdiemke,项目名称:XPTS,代码行数:25,代码来源:AtsPositionSlider.java


示例11: createPainterPropertiesPanel

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
/**
     * @param painterControlPanel
     * @return
     */
    private JXPanel createPainterPropertiesPanel() {
        basePainterControlPanel = createBasePainterControlPanel();
        layoutPainterControlPanel = createLayoutPainterControl();
        areaPainterControlPanel = createAreaPainterControlPanel();
        JXPanel properties = new JXPanel();
        FormLayout formLayout = new FormLayout(
                " f:d:n, l:4dlu:n, f:d:n, l:4dlu:n, f:d:n ", // columns
                "t:d:n " 
        ); // rows
        
        PanelBuilder builder = new PanelBuilder(formLayout, properties);
        builder.setBorder(Borders.DLU4_BORDER);
        CellConstraints cl = new CellConstraints();
//        CellConstraints cc = new CellConstraints();
        int currentColumn = 1;
        builder.add(basePainterControlPanel, cl.xy(currentColumn, 1));
        currentColumn +=2;
        builder.add(layoutPainterControlPanel, cl.xy(currentColumn, 1));
        currentColumn +=2;
        builder.add(areaPainterControlPanel, cl.xy(currentColumn, 1));
        currentColumn +=2;
        return properties;
    }
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:28,代码来源:PainterDemo.java


示例12: createMonthViewDemo

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
private void createMonthViewDemo() {
    monthView = new JXMonthView();
    monthView.setName("monthView");
    
    // add to container which doesn't grow the size beyond the pref
    JComponent monthViewContainer = new JXPanel();
    monthViewContainer.add(monthView);
    
    JPanel monthViewControlPanel = new JXPanel();
    add(monthViewControlPanel, BorderLayout.SOUTH);

    FormLayout formLayout = new FormLayout(
            "f:m:g, l:4dlu:n, f:m:g", // columns
            "c:d:g, t:2dlu:n, t:d:n "
    ); // rows
    PanelBuilder builder = new PanelBuilder(formLayout, this);
    builder.setBorder(Borders.DLU4_BORDER);
    CellConstraints cc = new CellConstraints();
    
    builder.add(monthViewContainer, cc.xywh(1, 1, 3, 1));
    
    builder.add(createBoxPropertiesPanel(), cc.xywh(1, 3, 1, 1));
    builder.add(createConfigPanel(), cc.xywh(3, 3, 1, 1));
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:25,代码来源:MonthViewDemo.java


示例13: buildRatingPanel

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
private void buildRatingPanel() {
    fRatingIndicators.clear();
    fComponent.removeAll();

    // definte the FormLayout columns and rows.
    FormLayout layout = new FormLayout("", "fill:p:grow");
    PanelBuilder builder = new PanelBuilder(layout, fComponent);

    for (int i = 0; i < Rating.values().length - 1; i++) {
        RatingLabel label = new RatingLabel(i);
        fRatingIndicators.add(label);

        builder.appendColumn("p");
        builder.add(label, new CellConstraints().xy(builder.getColumn(), 1));
        builder.nextColumn();
    }
}
 
开发者ID:mathieulegoc,项目名称:SmartTokens,代码行数:18,代码来源:RatingComponent.java


示例14: init

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
protected void init(String labelString, List<JComponent> components)
{
	JComponent componentToAdd;
       if (components.size() == 1) {
           componentToAdd = components.get(0);
       } else {
           componentToAdd = new JPanel(new FlowLayout(0, 0, FlowLayout.CENTER));
           componentToAdd.setOpaque(false);
           for (JComponent component : components) {
               componentToAdd.add(component);
           }
       }

       // definte the FormLayout columns and rows.
       FormLayout layout = new FormLayout("p", "fill:p:grow, p");
       // create the cell constraints to use in the layout.
       CellConstraints cc = new CellConstraints();
       // create the builder with our panel as the component to be filled.
       PanelBuilder builder = new PanelBuilder(layout, new JPanel());

       builder.add(componentToAdd, cc.xy(1, 1, "center, center"));
       builder.add(createLabel(labelString), cc.xy(1, 2, "center, top"));

       fComponent = builder.getPanel();
       fComponent.setOpaque(false);
}
 
开发者ID:mathieulegoc,项目名称:SmartTokens,代码行数:27,代码来源:LabeledComponentGroup.java


示例15: setupDetails

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
protected void setupDetails()
{
   FormLayout layout = new FormLayout("2dlu, l:p, 4dlu, f:p:g, 2dlu", 
      "4dlu, p, 8dlu, p, 8dlu, p, 4dlu, p, 4dlu");
   PanelBuilder builder = new PanelBuilder(layout);
   CellConstraints cc = new CellConstraints();

   int row = 2;
   builder.addLabel(I18n.getMessage("ParameterTypeValue.name") + ':', cc.rcw(row, 2, 3));

   row = 4;
   builder.addLabel(I18n.getMessage("ParameterTypeValue.value"), cc.rc(row, 2));
   builder.add(valueField, cc.rc(row, 4));

   row = 6;
   builder.addLabel(I18n.getMessage("ParameterTypeValue.order"), cc.rc(row, 2));
   builder.add(orderField, cc.rc(row, 4));

   splitPane.setRightComponent(new JScrollPane(builder.build()));

   labelElems = MultiLingualTextUtil.createFormElements(builder, 3);
}
 
开发者ID:selfbus,项目名称:development-tools-incubation,代码行数:23,代码来源:ParameterTypeValues.java


示例16: ParamEditorElem

import com.jgoodies.forms.builder.PanelBuilder; //导入依赖的package包/类
/**
 * Create a {@link VirtualDevice virtual device} display element.
 * 
 * @param group - the product group
 */
public ParamEditorElem(ProductGroup group)
{
   this.group = group;

   FormLayout layout = new FormLayout("6dlu, l:p, 3dlu, f:p:g, 6dlu",
      "8dlu, p, 6dlu, f:p:g, 3dlu, f:p:g, 3dlu");

   PanelBuilder builder = new PanelBuilder(layout);
   CellConstraints cc = new CellConstraints();
   JLabel lbl;

   int row = 2;
   lbl = builder.addLabel(I18n.getMessage("ParamEditorTester.caption"), cc.rcw(row, 2, 3));
   lbl.setFont(FontUtils.getCaptionFont());
   lbl.setOpaque(false);

   row = 4;
   pagesList.setCellRenderer(new ParameterListCellRenderer());
   builder.add(new JScrollPane(pagesList), cc.rc(row, 2));

   detailsPanel = builder.build();
   updateContents();
}
 
开发者ID:selfbus,项目名称:development-tools-incubation,代码行数:29,代码来源:ParamEditorElem.java


示例17: 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


示例18: 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


示例19: 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


示例20: 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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Result类代码示例发布时间:2022-05-21
下一篇:
Java Cache类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap