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


Java ButtonBarBuilder.addGriddedButtons方法代码示例

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


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

示例1: buildWizardBar

import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
public static JPanel buildWizardBar(JButton[] leftAlignedButtons, JButton back, JButton next, JButton overlaidFinish, JButton[] rightAlignedButtons)
{
  ButtonBarBuilder builder = new ButtonBarBuilder();
  if (leftAlignedButtons != null) {
    builder.addGriddedButtons(leftAlignedButtons);
    builder.addRelatedGap();
  }
  builder.addGlue();
  builder.addGridded(back);
  builder.addGridded(next);

  if (overlaidFinish != null) {
    builder.nextColumn(-1);
    builder.add(overlaidFinish);
    builder.nextColumn();
  }

  if (rightAlignedButtons != null) {
    builder.addRelatedGap();
    builder.addGriddedButtons(rightAlignedButtons);
  }
  return builder.getPanel();
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:24,代码来源:ButtonBarFactory.java

示例2: buildLeftAlignedBar

import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
public static JPanel buildLeftAlignedBar(JButton[] buttons)
{
  ButtonBarBuilder builder = new ButtonBarBuilder();
  builder.addGriddedButtons(buttons);
  builder.addGlue();
  return builder.getPanel();
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:8,代码来源:ButtonBarFactory.java

示例3: buildCenteredBar

import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
public static JPanel buildCenteredBar(JButton[] buttons)
{
  ButtonBarBuilder builder = new ButtonBarBuilder();
  builder.addGlue();
  builder.addGriddedButtons(buttons);
  builder.addGlue();
  return builder.getPanel();
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:9,代码来源:ButtonBarFactory.java

示例4: buildRightAlignedBar

import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
public static JPanel buildRightAlignedBar(JButton[] buttons)
{
  ButtonBarBuilder builder = new ButtonBarBuilder();
  builder.addGlue();
  builder.addGriddedButtons(buttons);
  return builder.getPanel();
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:8,代码来源:ButtonBarFactory.java

示例5: buildHelpBar

import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
public static JPanel buildHelpBar(JButton help, JButton[] buttons)
{
  ButtonBarBuilder builder = new ButtonBarBuilder();
  builder.addGridded(help);
  builder.addRelatedGap();
  builder.addGlue();
  builder.addGriddedButtons(buttons);
  return builder.getPanel();
}
 
开发者ID:javachen,项目名称:IBMDataMovementTool,代码行数:10,代码来源:ButtonBarFactory.java

示例6: createButtonPanel

import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
private JPanel createButtonPanel() {
	buttonBack.setIcon(ImageFactory.getIcon("back.png")); //$NON-NLS-1$
	ButtonBarBuilder bbbuilder = new ButtonBarBuilder();
	bbbuilder.addGlue();
	bbbuilder.addGriddedButtons(new JButton[] {buttonBack});
	FormLayout buttonLayout = new FormLayout("4dlu, default:grow, 4dlu", // columns //$NON-NLS-1$
                                                "6dlu, default, 6dlu, fill:default:grow, 6dlu"); // rows //$NON-NLS-1$
	CellConstraints ccbb = new CellConstraints();
	JPanel buttonPanel = new JPanel(buttonLayout);
	JSeparator separator = new JSeparator(SwingConstants.HORIZONTAL);
	buttonPanel.add(separator, ccbb.xy(2, 2));
	buttonPanel.add(bbbuilder.getPanel(), ccbb.xy(2, 4));
	return buttonPanel;
}
 
开发者ID:galan,项目名称:dub,代码行数:15,代码来源:SimpleContentPanel.java

示例7: createButtonPanel

import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
private JPanel createButtonPanel(JButton[] buttons) {
	ButtonBarBuilder bbbuilder = new ButtonBarBuilder();
	bbbuilder.addGlue();
	bbbuilder.addGriddedButtons(buttons);
	return bbbuilder.getPanel();
}
 
开发者ID:galan,项目名称:dub,代码行数:7,代码来源:UpdatePanel.java


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