Logo Search packages:      
Sourcecode: libjgoodies-forms-java version File versions  Download package

Component com::jgoodies::forms::tutorial::building::ButtonOrderExample::buildButtonSequence ( ButtonBarBuilder  builder  )  [inline, private]

Builds and returns a button bar honoring the builder's button order.

Parameters:
builder the builder used to build the bar
Returns:
a button bar that honors the builder's button order

Definition at line 108 of file ButtonOrderExample.java.

References com::jgoodies::forms::builder::ButtonBarBuilder::addGriddedButtons(), and com::jgoodies::forms::builder::PanelBuilder::getPanel().

Referenced by buildPanel().

                                                                    {
        builder.addGriddedButtons(new JButton[] {
                new JButton("One"),
                new JButton("Two"),
                new JButton("Three")
        });
        return builder.getPanel();
    }


Generated by  Doxygen 1.6.0   Back to index