本文整理汇总了Java中com.jgoodies.forms.builder.ButtonBarBuilder.getPanel方法的典型用法代码示例。如果您正苦于以下问题:Java ButtonBarBuilder.getPanel方法的具体用法?Java ButtonBarBuilder.getPanel怎么用?Java ButtonBarBuilder.getPanel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jgoodies.forms.builder.ButtonBarBuilder
的用法示例。
在下文中一共展示了ButtonBarBuilder.getPanel方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createButtonBar
import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
private JPanel createButtonBar()
{
_closeBtn.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
setVisible(false);
}
});
final ButtonBarBuilder builder = new ButtonBarBuilder();
builder.addGlue();
// builder.addGridded(new JButton("Alter"));
// builder.addRelatedGap();
builder.addGridded(_closeBtn);
return builder.getPanel();
}
示例2: 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();
}
示例3: 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();
}
示例4: 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();
}
示例5: 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();
}
示例6: 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();
}
示例7: buildAddRemovePropertiesBar
import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
public static JPanel buildAddRemovePropertiesBar(JButton add, JButton remove, JButton properties)
{
ButtonBarBuilder builder = new ButtonBarBuilder();
builder.addGriddedGrowing(add);
builder.addRelatedGap();
builder.addGriddedGrowing(remove);
builder.addRelatedGap();
builder.addGriddedGrowing(properties);
return builder.getPanel();
}
示例8: buildGrowingBar
import com.jgoodies.forms.builder.ButtonBarBuilder; //导入方法依赖的package包/类
public static JPanel buildGrowingBar(JButton[] buttons)
{
ButtonBarBuilder builder = new ButtonBarBuilder();
builder.addGriddedGrowingButtons(buttons);
return builder.getPanel();
}
示例9: 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();
}